Class ContainerWrenchConfig
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
org.cyclops.cyclopscore.inventory.container.ContainerExtended
org.cyclops.cyclopscore.inventory.container.InventoryContainer
org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer<PartConfigEntry>
org.cyclops.integrateddynamics.inventory.container.ContainerWrenchConfig
- All Implemented Interfaces:
org.cyclops.cyclopscore.client.gui.component.WidgetScrollBar.IScrollCallback, org.cyclops.cyclopscore.inventory.container.button.IContainerButtonClickAcceptorServer<org.cyclops.cyclopscore.inventory.container.ContainerExtended>, org.cyclops.cyclopscore.inventory.IValueNotifiable, org.cyclops.cyclopscore.inventory.IValueNotifier
public class ContainerWrenchConfig
extends org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer<PartConfigEntry>
Container for looking at the configuration inside a Wrench,
and switching off the parts of it that should not be pasted.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer
org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer.IItemPredicate<E> -
Field Summary
FieldsFields inherited from class org.cyclops.cyclopscore.inventory.container.InventoryContainer
inventoryFields inherited from class org.cyclops.cyclopscore.inventory.container.ContainerExtended
ITEMBOX, offsetX, offsetY, playerFields inherited from class net.minecraft.world.inventory.AbstractContainerMenu
CARRIED_SLOT_SIZE, containerId, lastSlots, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, remoteSlots, SLOT_CLICKED_OUTSIDE, SLOT_SIZE, slots, SLOTS_PER_ROW -
Constructor Summary
ConstructorsConstructorDescriptionContainerWrenchConfig(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.FriendlyByteBuf packetBuffer) ContainerWrenchConfig(int id, net.minecraft.world.entity.player.Inventory inventory, org.cyclops.cyclopscore.inventory.ItemLocation itemLocation) -
Method Summary
Modifier and TypeMethodDescriptionprotected static List<PartConfigEntry> getEntries(net.minecraft.world.entity.player.Player player, org.cyclops.cyclopscore.inventory.ItemLocation itemLocation) net.minecraft.world.item.ItemStackintprotected static StringgetSearchableText(PartConfigEntry entry) booleanisEntryEnabled(String id) protected voidsetSnapshot(PartConfigSnapshot snapshot) booleanstillValid(net.minecraft.world.entity.player.Player player) protected voidprotected voidtoggleEntry(String id) Methods inherited from class org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer
additionalApplies, enableElementAt, filter, getColumns, getFilteredItemCount, getFilteredItems, getFirstElement, getScrollStepSize, getUnfilteredItemCount, getUnfilteredItems, getVisibleElement, isElementVisible, onScroll, refreshFilter, updateFilterMethods inherited from class org.cyclops.cyclopscore.inventory.container.InventoryContainer
getContainerInventory, getSizeInventory, isAssertInventorySize, removedMethods inherited from class org.cyclops.cyclopscore.inventory.container.ContainerExtended
addInventory, addPlayerArmorInventory, addPlayerInventory, addSlot, addSlotListener, adjustPhantomSlot, broadcastChanges, clicked, createNewSlot, fillPhantomSlot, getHolderLookupProvider, getNextValueId, getPlayerIInventory, getSlotRange, getSlotStart, getValue, getValueIds, getValueNotifiableType, initializeValues, moveItemStackTo, onButtonClick, onUpdate, putButtonAction, quickMoveStack, registerSyncedVariable, resetQuickCraft, setGuiValueListener, setSlotPosX, setSlotPosY, setValueMethods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addStandardInventorySlots, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, removeSlotListener, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
BUTTON_TOGGLE_ALL
- See Also:
-
PAGE_SIZE
public static final int PAGE_SIZE- See Also:
-
-
Constructor Details
-
ContainerWrenchConfig
public ContainerWrenchConfig(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.FriendlyByteBuf packetBuffer) -
ContainerWrenchConfig
public ContainerWrenchConfig(int id, net.minecraft.world.entity.player.Inventory inventory, org.cyclops.cyclopscore.inventory.ItemLocation itemLocation)
-
-
Method Details
-
getSearchableText
- Parameters:
entry- An entry that the Wrench holds.- Returns:
- Everything about that entry that a player can search for, including its section, as the gui itself has no room to show that.
-
getEntries
protected static List<PartConfigEntry> getEntries(net.minecraft.world.entity.player.Player player, org.cyclops.cyclopscore.inventory.ItemLocation itemLocation) -
getEntries
- Returns:
- Everything that the Wrench holds, whether it is switched on or not.
-
getItemStack
public net.minecraft.world.item.ItemStack getItemStack() -
getWrenchSnapshot
- Returns:
- The configuration that the Wrench holds, if it still holds one.
-
isEntryEnabled
- Parameters:
id- The identifier of an entry.- Returns:
- If that entry is going to be pasted.
-
toggleEntry
-
toggleAll
protected void toggleAll() -
setSnapshot
-
getPageSize
public int getPageSize()- Specified by:
getPageSizein classorg.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer<PartConfigEntry>
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Overrides:
stillValidin classorg.cyclops.cyclopscore.inventory.container.InventoryContainer
-