Class OpenCrateBlockEntity
java.lang.Object
net.minecraft.world.level.block.entity.BlockEntity
vazkii.botania.common.block.block_entity.BotaniaBlockEntity
vazkii.botania.common.block.block_entity.SimpleInventoryBlockEntity
vazkii.botania.common.block.block_entity.ExposedSimpleInventoryBlockEntity
vazkii.botania.common.block.block_entity.OpenCrateBlockEntity
- All Implemented Interfaces:
net.minecraft.world.Clearable,net.minecraft.world.Container,net.minecraft.world.WorldlyContainer
- Direct Known Subclasses:
CraftyCrateBlockEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput -
Field Summary
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER -
Constructor Summary
ConstructorsModifierConstructorDescriptionOpenCrateBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) protectedOpenCrateBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanEject()booleancanTakeItemThroughFace(int index, @NotNull net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.core.Direction direction) protected net.minecraft.world.SimpleContainervoideject(net.minecraft.world.item.ItemStack stack, boolean redstone) static voidserverTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState state, OpenCrateBlockEntity self) Methods inherited from class vazkii.botania.common.block.block_entity.ExposedSimpleInventoryBlockEntity
canPlaceItem, canPlaceItemThroughFace, countItem, getContainerSize, getItem, getMaxStackSize, getSlotsForFace, hasAnyOf, isEmpty, removeItem, removeItemNoUpdate, setItem, startOpen, stillValid, stopOpenMethods inherited from class vazkii.botania.common.block.block_entity.SimpleInventoryBlockEntity
clearContent, getItemHandler, inventorySize, readPacketNBT, writePacketNBTMethods inherited from class vazkii.botania.common.block.block_entity.BotaniaBlockEntity
getUpdatePacket, getUpdateTag, loadAdditional, saveAdditionalMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setLevel, setRemoved, triggerEventMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.Clearable
clearContentMethods inherited from interface net.minecraft.world.Container
canTakeItem, getMaxStackSize, hasAnyMatching, setChanged
-
Constructor Details
-
OpenCrateBlockEntity
public OpenCrateBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
OpenCrateBlockEntity
protected OpenCrateBlockEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> type, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
createItemHandler
protected net.minecraft.world.SimpleContainer createItemHandler()- Specified by:
createItemHandlerin classSimpleInventoryBlockEntity
-
serverTick
public static void serverTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos worldPosition, net.minecraft.world.level.block.state.BlockState state, OpenCrateBlockEntity self) -
canEject
public boolean canEject() -
eject
public void eject(net.minecraft.world.item.ItemStack stack, boolean redstone) -
canTakeItemThroughFace
public boolean canTakeItemThroughFace(int index, @NotNull @NotNull net.minecraft.world.item.ItemStack stack, @Nullable @Nullable net.minecraft.core.Direction direction) - Specified by:
canTakeItemThroughFacein interfacenet.minecraft.world.WorldlyContainer- Overrides:
canTakeItemThroughFacein classExposedSimpleInventoryBlockEntity
-