Interface TackleBoxWorldlyContainerHelper
- All Superinterfaces:
net.minecraft.world.Clearable, net.minecraft.world.Container, net.neoforged.neoforge.common.extensions.ContainerExtension, Iterable<net.minecraft.world.item.ItemStack>, net.minecraft.world.entity.SlotProvider, net.minecraft.world.WorldlyContainer
- All Known Implementing Classes:
TackleBoxBlockEntity, TackleBoxBoatEntity
public interface TackleBoxWorldlyContainerHelper
extends net.minecraft.world.WorldlyContainer
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.Container
net.minecraft.world.Container.ContainerIterator -
Field Summary
Fields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER -
Method Summary
Modifier and TypeMethodDescriptiondefault booleancanPlaceItemThroughFace(int index, net.minecraft.world.item.ItemStack itemStack, @Nullable net.minecraft.core.Direction direction) default booleancanTakeItemThroughFace(int index, net.minecraft.world.item.ItemStack stack, net.minecraft.core.Direction direction) default voiddefault intdefault net.minecraft.world.item.ItemStackgetItem(int slot) default int[]getSlotsForFace(net.minecraft.core.Direction side) default booleanisEmpty()default net.minecraft.world.item.ItemStackremoveItem(int slot, int amount) default net.minecraft.world.item.ItemStackremoveItemNoUpdate(int slot) default voidsetItem(int slot, net.minecraft.world.item.ItemStack stack) default booleanstillValid(net.minecraft.world.entity.player.Player player) Methods inherited from interface net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getEntitiesWithContainerOpen, getMaxStackSize, getMaxStackSize, getSlot, hasAnyMatching, hasAnyOf, iterator, setChanged, startOpen, stopOpenMethods inherited from interface net.neoforged.neoforge.common.extensions.ContainerExtension
onTransfer, setItemMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface net.minecraft.world.entity.SlotProvider
getSlotsFromRange
-
Method Details
-
getTackleBoxContainer
TackleBoxContainer getTackleBoxContainer() -
getSlotsForFace
default int[] getSlotsForFace(net.minecraft.core.Direction side) - Specified by:
getSlotsForFacein interfacenet.minecraft.world.WorldlyContainer
-
canPlaceItemThroughFace
default boolean canPlaceItemThroughFace(int index, net.minecraft.world.item.ItemStack itemStack, @Nullable @Nullable net.minecraft.core.Direction direction) - Specified by:
canPlaceItemThroughFacein interfacenet.minecraft.world.WorldlyContainer
-
canTakeItemThroughFace
default boolean canTakeItemThroughFace(int index, net.minecraft.world.item.ItemStack stack, net.minecraft.core.Direction direction) - Specified by:
canTakeItemThroughFacein interfacenet.minecraft.world.WorldlyContainer
-
isEmpty
default boolean isEmpty()- Specified by:
isEmptyin interfacenet.minecraft.world.Container
-
clearContent
default void clearContent()- Specified by:
clearContentin interfacenet.minecraft.world.Clearable
-
getItem
default net.minecraft.world.item.ItemStack getItem(int slot) - Specified by:
getItemin interfacenet.minecraft.world.Container
-
removeItem
default net.minecraft.world.item.ItemStack removeItem(int slot, int amount) - Specified by:
removeItemin interfacenet.minecraft.world.Container
-
removeItemNoUpdate
default net.minecraft.world.item.ItemStack removeItemNoUpdate(int slot) - Specified by:
removeItemNoUpdatein interfacenet.minecraft.world.Container
-
setItem
default void setItem(int slot, net.minecraft.world.item.ItemStack stack) - Specified by:
setItemin interfacenet.minecraft.world.Container
-
stillValid
default boolean stillValid(net.minecraft.world.entity.player.Player player) - Specified by:
stillValidin interfacenet.minecraft.world.Container
-
getContainerSize
default int getContainerSize()- Specified by:
getContainerSizein interfacenet.minecraft.world.Container
-