Class TinyPotatoBlockEntity
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.TinyPotatoBlockEntity
- All Implemented Interfaces:
net.minecraft.world.Clearable,net.minecraft.world.Container,net.minecraft.world.Nameable,net.minecraft.world.WorldlyContainer
public class TinyPotatoBlockEntity
extends ExposedSimpleInventoryBlockEntity
implements net.minecraft.world.Nameable
-
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
FieldsFields 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
ConstructorsConstructorDescriptionTinyPotatoBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcommonTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, TinyPotatoBlockEntity self) protected net.minecraft.world.SimpleContainer@Nullable net.minecraft.network.chat.Componentnet.minecraft.network.chat.Componentnet.minecraft.network.chat.ComponentgetName()voidinteract(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack stack, net.minecraft.core.Direction side) voidreadPacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries) voidbooleantriggerEvent(int id, int param) voidwritePacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries) Methods inherited from class vazkii.botania.common.block.block_entity.ExposedSimpleInventoryBlockEntity
canPlaceItem, canPlaceItemThroughFace, canTakeItemThroughFace, 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, inventorySizeMethods 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, setComponents, setLevel, setRemovedMethods 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, hasAnyMatchingMethods inherited from interface net.minecraft.world.Nameable
hasCustomName
-
Field Details
-
jumpTicks
public int jumpTicks -
name
public net.minecraft.network.chat.Component name
-
-
Constructor Details
-
TinyPotatoBlockEntity
public TinyPotatoBlockEntity(net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
interact
public void interact(net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack stack, net.minecraft.core.Direction side) -
triggerEvent
public boolean triggerEvent(int id, int param) - Overrides:
triggerEventin classnet.minecraft.world.level.block.entity.BlockEntity
-
commonTick
public static void commonTick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, TinyPotatoBlockEntity self) -
setChanged
public void setChanged()- Specified by:
setChangedin interfacenet.minecraft.world.Container- Overrides:
setChangedin classnet.minecraft.world.level.block.entity.BlockEntity
-
writePacketNBT
public void writePacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries) - Overrides:
writePacketNBTin classSimpleInventoryBlockEntity
-
readPacketNBT
public void readPacketNBT(net.minecraft.nbt.CompoundTag cmp, net.minecraft.core.HolderLookup.Provider registries) - Overrides:
readPacketNBTin classSimpleInventoryBlockEntity
-
createItemHandler
protected net.minecraft.world.SimpleContainer createItemHandler()- Specified by:
createItemHandlerin classSimpleInventoryBlockEntity
-
getName
public net.minecraft.network.chat.Component getName()- Specified by:
getNamein interfacenet.minecraft.world.Nameable
-
getCustomName
@Nullable public @Nullable net.minecraft.network.chat.Component getCustomName()- Specified by:
getCustomNamein interfacenet.minecraft.world.Nameable
-
getDisplayName
public net.minecraft.network.chat.Component getDisplayName()- Specified by:
getDisplayNamein interfacenet.minecraft.world.Nameable
-