Java 类net.minecraft.util.IntHashMap 实例源码

项目:Resilience-Client-Source    文件:WorldServer.java   
protected void initialize(WorldSettings par1WorldSettings)
{
    if (this.entityIdMap == null)
    {
        this.entityIdMap = new IntHashMap();
    }

    if (this.pendingTickListEntriesHashSet == null)
    {
        this.pendingTickListEntriesHashSet = new HashSet();
    }

    if (this.pendingTickListEntriesTreeSet == null)
    {
        this.pendingTickListEntriesTreeSet = new TreeSet();
    }

    this.createSpawnPosition(par1WorldSettings);
    super.initialize(par1WorldSettings);
}
项目:Cauldron    文件:WorldServer.java   
protected void initialize(WorldSettings p_72963_1_)
{
    if (this.entityIdMap == null)
    {
        this.entityIdMap = new IntHashMap();
    }

    if (this.pendingTickListEntriesHashSet == null)
    {
        this.pendingTickListEntriesHashSet = new HashSet();
    }

    if (this.pendingTickListEntriesTreeSet == null)
    {
        this.pendingTickListEntriesTreeSet = new TreeSet();
    }

    this.createSpawnPosition(p_72963_1_);
    super.initialize(p_72963_1_);
}
项目:Cauldron    文件:WorldServer.java   
protected void initialize(WorldSettings p_72963_1_)
{
    if (this.entityIdMap == null)
    {
        this.entityIdMap = new IntHashMap();
    }

    if (this.pendingTickListEntriesHashSet == null)
    {
        this.pendingTickListEntriesHashSet = new HashSet();
    }

    if (this.pendingTickListEntriesTreeSet == null)
    {
        this.pendingTickListEntriesTreeSet = new TreeSet();
    }

    this.createSpawnPosition(p_72963_1_);
    super.initialize(p_72963_1_);
}
项目:RuneCraftery    文件:WorldServer.java   
protected void func_72963_a(WorldSettings p_72963_1_) {
   if(this.field_73066_T == null) {
      this.field_73066_T = new IntHashMap();
   }

   if(this.field_73064_N == null) {
      this.field_73064_N = new HashSet();
   }

   if(this.field_73065_O == null) {
      this.field_73065_O = new TreeSet();
   }

   this.func_73052_b(p_72963_1_);
   super.func_72963_a(p_72963_1_);
}
项目:RuneCraftery    文件:WorldServer.java   
protected void initialize(WorldSettings par1WorldSettings)
{
    if (this.entityIdMap == null)
    {
        this.entityIdMap = new IntHashMap();
    }

    if (this.pendingTickListEntriesHashSet == null)
    {
        this.pendingTickListEntriesHashSet = new HashSet();
    }

    if (this.pendingTickListEntriesTreeSet == null)
    {
        this.pendingTickListEntriesTreeSet = new TreeSet();
    }

    this.createSpawnPosition(par1WorldSettings);
    super.initialize(par1WorldSettings);
}
项目:BetterNutritionMod    文件:WorldServer.java   
protected void initialize(WorldSettings par1WorldSettings)
{
    if (this.entityIdMap == null)
    {
        this.entityIdMap = new IntHashMap();
    }

    if (this.pendingTickListEntriesHashSet == null)
    {
        this.pendingTickListEntriesHashSet = new HashSet();
    }

    if (this.pendingTickListEntriesTreeSet == null)
    {
        this.pendingTickListEntriesTreeSet = new TreeSet();
    }

    this.createSpawnPosition(par1WorldSettings);
    super.initialize(par1WorldSettings);
}
项目:CustomWorldGen    文件:KeyBindingMap.java   
public List<KeyBinding> lookupAll(int keyCode)
{
    List<KeyBinding> matchingBindings = new ArrayList<KeyBinding>();
    for (IntHashMap<Collection<KeyBinding>> bindingsMap : map.values())
    {
        Collection<KeyBinding> bindings = bindingsMap.lookup(keyCode);
        if (bindings != null)
        {
            matchingBindings.addAll(bindings);
        }
    }
    return matchingBindings;
}
项目:CustomWorldGen    文件:KeyBindingMap.java   
public void addKey(int keyCode, KeyBinding keyBinding)
{
    KeyModifier keyModifier = keyBinding.getKeyModifier();
    IntHashMap<Collection<KeyBinding>> bindingsMap = map.get(keyModifier);
    Collection<KeyBinding> bindingsForKey = bindingsMap.lookup(keyCode);
    if (bindingsForKey == null)
    {
        bindingsForKey = new ArrayList<KeyBinding>();
        bindingsMap.addKey(keyCode, bindingsForKey);
    }
    bindingsForKey.add(keyBinding);
}
项目:CustomWorldGen    文件:KeyBindingMap.java   
public void removeKey(KeyBinding keyBinding)
{
    KeyModifier keyModifier = keyBinding.getKeyModifier();
    int keyCode = keyBinding.getKeyCode();
    IntHashMap<Collection<KeyBinding>> bindingsMap = map.get(keyModifier);
    Collection<KeyBinding> bindingsForKey = bindingsMap.lookup(keyCode);
    if (bindingsForKey != null)
    {
        bindingsForKey.remove(keyBinding);
        if (bindingsForKey.isEmpty())
        {
            bindingsMap.removeObject(keyCode);
        }
    }
}
项目:CustomWorldGen    文件:KeyBindingMap.java   
public void clearMap()
{
    for (IntHashMap<Collection<KeyBinding>> bindings : map.values())
    {
        bindings.clearMap();
    }
}
项目:LambdaLib    文件:ControlOverrider.java   
private static IntHashMap getOriginalKbMap() {
    try {
        return (IntHashMap) kbMapField.get(null);
    } catch (Exception e) {
        throw Throwables.propagate(e);
    }
}
项目:Jiffy    文件:WorldServer.java   
protected void initialize(WorldSettings settings) {
    // This is here because the World CTOR triggers world
    // gen that can occur *before* WorldServer has a chance
    // to initialize. :\
    if (this.entityIdMap == null)
        this.entityIdMap = new IntHashMap();
    if (this.pendingTickListEntries == null)
        this.pendingTickListEntries = new PriorityQueue<NextTickListEntry>(QUEUE_SIZE);
    if (this.containment == null)
        containment = new HashSet<NextTickListEntry>(QUEUE_SIZE);

    this.createSpawnPosition(settings);
    super.initialize(settings);
}
项目:RuneCraftery    文件:IntHashMapEntry.java   
public final int hashCode() {
   return IntHashMap.func_76042_f(this.field_76035_a);
}
项目:SevenCommons    文件:SCReflector.java   
@Getter(field = F_TRACKED_ENTITY_IDS, srg = true)
IntHashMap getTrackerMap(EntityTracker tracker);