AllNPCsLoadedEvent class

Пакет: com.hypixel.hytale.server.npc

Файл: com/hypixel/hytale/server/npc/AllNPCsLoadedEvent.java

implements: IEvent<Void>

Исходный код

Показать/скрыть
class="kw">package com.hypixel.hytale.server.npc;

class="kw">import com.hypixel.hytale.event.IEvent;
class="kw">import com.hypixel.hytale.server.npc.asset.builder.BuilderInfo;
class="kw">import it.unimi.dsi.fastutil.ints.Int2ObjectMap;
class="kw">import it.unimi.dsi.fastutil.ints.Int2ObjectMaps;
class="kw">import java.util.Objects;
class="kw">import javax.annotation.Nonnull;

class="kw">public class AllNPCsLoadedEvent class="kw">implements IEvent<Void> {
   @Nonnull
   class="kw">private class="kw">final Int2ObjectMap<BuilderInfo> allNPCs;
   @Nonnull
   class="kw">private class="kw">final Int2ObjectMap<BuilderInfo> loadedNPCs;

   class="kw">public AllNPCsLoadedEvent(@Nonnull Int2ObjectMap<BuilderInfo> var1, @Nonnull Int2ObjectMap<BuilderInfo> var2) {
      Objects.requireNonNull(var1, "Map of all NPCs must not be empty in AllNPCsLoadedEvent");
      Objects.requireNonNull(var2, "Map of loaded NPCs must not be empty in AllNPCsLoadedEvent");
      this.allNPCs = Int2ObjectMaps.unmodifiable(var1);
      this.loadedNPCs = Int2ObjectMaps.unmodifiable(var2);
   }

   @Nonnull
   class="kw">public Int2ObjectMap<BuilderInfo> getAllNPCs() {
      class="kw">return this.allNPCs;
   }

   @Nonnull
   class="kw">public Int2ObjectMap<BuilderInfo> getLoadedNPCs() {
      class="kw">return this.loadedNPCs;
   }

   @Nonnull
   @Override
   class="kw">public String toString() {
      class="kw">return "AllNPCsLoadedEvent{allNPCs=" + this.allNPCs + ", loadedNPCs=" + this.loadedNPCs + "}";
   }
}