Class DepotBehaviour
java.lang.Object
com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
com.simibubi.create.content.logistics.depot.DepotBehaviour
- All Implemented Interfaces:
net.minecraft.world.Clearable
-
Field Summary
FieldsFields inherited from class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
blockEntity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSubBehaviours(List<BlockEntityBehaviour> behaviours) booleanvoidvoiddestroy()Block destroyed or removed.voidnet.minecraft.world.item.ItemStackintintgetType()net.minecraft.world.item.ItemStackinsert(TransportedItemStack heldItem, boolean simulate) booleanisEmpty()booleanisItemValid(net.minecraft.world.item.ItemStack stack) booleanonlyAccepts(Predicate<net.minecraft.world.item.ItemStack> filter) voidread(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) voidvoidsetCenteredHeldItem(TransportedItemStack heldItem) voidsetHeldItem(TransportedItemStack heldItem) voidtick()protected booleantick(TransportedItemStack heldItem) voidunload()Block destroyed or Chunk unloaded.withCallback(Consumer<net.minecraft.world.item.ItemStack> changeListener) voidwrite(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) Methods inherited from class com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour
get, get, getPos, getRequiredItems, getWorld, initialize, isSafeNBT, lazyTick, onBlockChanged, onNeighborChanged, setLazyTickRate, writeSafe
-
Field Details
-
TYPE
-
itemHandler
-
-
Constructor Details
-
DepotBehaviour
-
-
Method Details
-
enableMerging
public void enableMerging() -
withCallback
-
onlyAccepts
-
tick
public void tick()- Overrides:
tickin classBlockEntityBehaviour
-
tick
-
clearContent
public void clearContent()- Specified by:
clearContentin interfacenet.minecraft.world.Clearable
-
destroy
public void destroy()Description copied from class:BlockEntityBehaviourBlock destroyed or removed. Requires block to call ITE::onRemove- Overrides:
destroyin classBlockEntityBehaviour
-
unload
public void unload()Description copied from class:BlockEntityBehaviourBlock destroyed or Chunk unloaded. Usually invalidates capabilities- Overrides:
unloadin classBlockEntityBehaviour
-
write
public void write(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) - Overrides:
writein classBlockEntityBehaviour
-
read
public void read(net.minecraft.nbt.CompoundTag compound, net.minecraft.core.HolderLookup.Provider registries, boolean clientPacket) - Overrides:
readin classBlockEntityBehaviour
-
addSubBehaviours
-
getHeldItemStack
public net.minecraft.world.item.ItemStack getHeldItemStack() -
canMergeItems
public boolean canMergeItems() -
getPresentStackSize
public int getPresentStackSize() -
getRemainingSpace
public int getRemainingSpace() -
insert
-
setHeldItem
-
removeHeldItem
public void removeHeldItem() -
setCenteredHeldItem
-
isEmpty
public boolean isEmpty() -
isOutputEmpty
public boolean isOutputEmpty() -
getType
- Specified by:
getTypein classBlockEntityBehaviour
-
isItemValid
public boolean isItemValid(net.minecraft.world.item.ItemStack stack)
-