Class TackleBoxMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.wdiscute.starcatcher.blocks.tacklebox.TackleBoxMenu
public class TackleBoxMenu
extends net.minecraft.world.inventory.AbstractContainerMenu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intfinal TackleBoxBlockEntitystatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class net.minecraft.world.inventory.AbstractContainerMenu
CARRIED_SLOT_SIZE, containerId, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, SLOT_CLICKED_OUTSIDE, SLOT_SIZE, slots, SLOTS_PER_ROW -
Constructor Summary
ConstructorsConstructorDescriptionTackleBoxMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.FriendlyByteBuf extraData) TackleBoxMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.Container container, net.minecraft.world.level.block.entity.BlockEntity blockEntity) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStackgetRod()voidonPlaceRod(net.minecraft.world.item.ItemStack newStack) net.minecraft.world.item.ItemStackquickMoveStack(net.minecraft.world.entity.player.Player player, int index) voidremoved(net.minecraft.world.entity.player.Player player) booleanstillValid(net.minecraft.world.entity.player.Player player) voidupdate()Methods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, moveItemStackTo, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
be
-
ROD_SLOT
public static final int ROD_SLOT- See Also:
-
BOBBER_SLOT
public static final int BOBBER_SLOT- See Also:
-
BAIT_SLOT
public static final int BAIT_SLOT- See Also:
-
HOOK_SLOT
public static final int HOOK_SLOT- See Also:
-
FISH_SLOT
public static final int FISH_SLOT- See Also:
-
CONTAINER_SIZE
public static final int CONTAINER_SIZE- See Also:
-
-
Constructor Details
-
TackleBoxMenu
public TackleBoxMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.FriendlyByteBuf extraData) -
TackleBoxMenu
public TackleBoxMenu(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.world.Container container, net.minecraft.world.level.block.entity.BlockEntity blockEntity)
-
-
Method Details
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player player) - Specified by:
stillValidin classnet.minecraft.world.inventory.AbstractContainerMenu
-
quickMoveStack
public net.minecraft.world.item.ItemStack quickMoveStack(net.minecraft.world.entity.player.Player player, int index) - Specified by:
quickMoveStackin classnet.minecraft.world.inventory.AbstractContainerMenu
-
removed
public void removed(net.minecraft.world.entity.player.Player player) - Overrides:
removedin classnet.minecraft.world.inventory.AbstractContainerMenu
-
update
public void update() -
getRod
public net.minecraft.world.item.ItemStack getRod() -
onPlaceRod
public void onPlaceRod(net.minecraft.world.item.ItemStack newStack)
-