Class BaseChiselingContainer
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
com.supermartijn642.core.gui.BaseContainer
com.supermartijn642.rechiseled.screen.BaseChiselingContainer
- Direct Known Subclasses:
ChiselContainer
public abstract class BaseChiselingContainer
extends com.supermartijn642.core.gui.BaseContainer
Created 22/12/2021 by SuperMartijn642
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanFields inherited from class com.supermartijn642.core.gui.BaseContainer
level, playerFields 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, slots -
Constructor Summary
ConstructorsConstructorDescriptionBaseChiselingContainer(com.supermartijn642.core.gui.BaseContainerType<?> type, net.minecraft.world.entity.player.Player player) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSlots(net.minecraft.world.entity.player.Player playerEntity) voidabstract net.minecraft.world.item.ItemStackprotected booleanmoveItemStackTo(net.minecraft.world.item.ItemStack stack, int minSlot, int maxSlot, boolean reversed) net.minecraft.world.item.ItemStackquickMoveStack(net.minecraft.world.entity.player.Player player, int index) voidsetCurrentEntry(int index) abstract voidsetCurrentStack(net.minecraft.world.item.ItemStack stack) abstract booleanbooleanstillValid(net.minecraft.world.entity.player.Player playerIn) voidprotected voidMethods inherited from class com.supermartijn642.core.gui.BaseContainer
addPlayerSlots, addSlots, getContainerType, setContainerIdMethods inherited from class net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, 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, removed, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, slotsChanged, stillValid, suppressRemoteUpdates, transferState
-
Field Details
-
currentRecipe
-
currentEntry
-
connecting
public boolean connecting
-
-
Constructor Details
-
BaseChiselingContainer
public BaseChiselingContainer(com.supermartijn642.core.gui.BaseContainerType<?> type, net.minecraft.world.entity.player.Player player)
-
-
Method Details
-
addSlots
protected void addSlots(net.minecraft.world.entity.player.Player playerEntity) - Specified by:
addSlotsin classcom.supermartijn642.core.gui.BaseContainer
-
stillValid
public boolean stillValid(net.minecraft.world.entity.player.Player playerIn) - Overrides:
stillValidin classcom.supermartijn642.core.gui.BaseContainer
-
updateRecipe
protected void updateRecipe() -
setCurrentEntry
public void setCurrentEntry(int index) -
toggleConnecting
public void toggleConnecting() -
chiselAll
public void chiselAll() -
getCurrentStack
public abstract net.minecraft.world.item.ItemStack getCurrentStack() -
setCurrentStack
public abstract void setCurrentStack(net.minecraft.world.item.ItemStack stack) -
shouldBeClosed
public abstract boolean shouldBeClosed() -
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
-
moveItemStackTo
protected boolean moveItemStackTo(net.minecraft.world.item.ItemStack stack, int minSlot, int maxSlot, boolean reversed) - Overrides:
moveItemStackToin classnet.minecraft.world.inventory.AbstractContainerMenu
-