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); }
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_); }
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_); }
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; }
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); }
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); } } }
public void clearMap() { for (IntHashMap<Collection<KeyBinding>> bindings : map.values()) { bindings.clearMap(); } }
private static IntHashMap getOriginalKbMap() { try { return (IntHashMap) kbMapField.get(null); } catch (Exception e) { throw Throwables.propagate(e); } }
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); }
public final int hashCode() { return IntHashMap.func_76042_f(this.field_76035_a); }
@Getter(field = F_TRACKED_ENTITY_IDS, srg = true) IntHashMap getTrackerMap(EntityTracker tracker);