/** * Removes an element from this set. * * <p> * This method is inherited from the type-specific collection this type-specific * set is based on, but it should not used as this interface reinstates * {@code remove()} as removal method. * * @deprecated Please use {@code remove()} instead. */ @Deprecated @Override default boolean rem(int k) { return remove(k); } }
private void bindingRemoveTextureReference( final int texture_id, final int index) { if (this.texture_to_units.containsKey(texture_id)) { final IntSet tc = this.texture_to_units.get(texture_id); tc.remove(index); if (tc.isEmpty()) { this.texture_to_units.remove(texture_id); } } }
private void bindingRemoveTextureReference( final int texture_id, final int index) { if (this.texture_to_units.containsKey(texture_id)) { final IntSet tc = this.texture_to_units.get(texture_id); tc.remove(index); if (tc.isEmpty()) { this.texture_to_units.remove(texture_id); } } }
public void remove(int id) { BaseObject object = objects.remove(id); childrenOf.remove(id); // We handle the removing of children in the server version if (object != null) { // Remove from the parent set if needed. IntSet parent = childrenOf.get(object.parent()); if (parent != null) parent.remove(id); } }
checkForRetrogen.remove(dimensionID);
downKeys.remove(keycode); return true;
public boolean handleMouseEvent(GuiScreen guiScreen, int mouseX, int mouseY) { boolean cancelEvent = false; final int eventButton = Mouse.getEventButton(); if (eventButton > -1) { if (Mouse.getEventButtonState()) { if (!clickHandled.contains(eventButton)) { cancelEvent = handleMouseClick(guiScreen, eventButton, mouseX, mouseY); if (cancelEvent) { clickHandled.add(eventButton); } } } else if (clickHandled.contains(eventButton)) { clickHandled.remove(eventButton); cancelEvent = true; } } else if (Mouse.getEventDWheel() != 0) { cancelEvent = handleMouseScroll(Mouse.getEventDWheel(), mouseX, mouseY); } return cancelEvent; }