Class DecoratedPotBlockEntity
java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity
- All Implemented Interfaces:
 Clearable,Container,RandomizableContainer,ContainerSingleItem,IAttachmentHolder,IBlockEntityExtension,INBTSerializable<CompoundTag>
public class DecoratedPotBlockEntity
extends BlockEntity
implements RandomizableContainer, ContainerSingleItem
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enumNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsField - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate ItemStackprotected ResourceLocationprotected longstatic final Stringstatic final StringlongFields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPositionFields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
ATTACHMENTS_NBT_KEYFields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZEFields inherited from interface net.minecraft.world.RandomizableContainer
LOOT_TABLE_SEED_TAG, LOOT_TABLE_TAG - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic ItemStacklongvoidload(CompoundTag p_272924_) protected voidsaveAdditional(CompoundTag p_272957_) voidsetFromItem(ItemStack p_273109_) voidsetLootTable(ResourceLocation p_309557_) voidsetLootTableSeed(long p_309580_) voidsetTheItem(ItemStack p_305817_) splitTheItem(int p_305991_) booleantriggerEvent(int p_306146_, int p_305858_) voidwobble(DecoratedPotBlockEntity.WobbleStyle p_305984_) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onlyOpCanSetNbt, removeData, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setData, setLevel, setRemovedMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
areAttachmentsCompatible, deserializeAttachments, getData, hasAttachments, hasData, serializeAttachmentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, setChanged, startOpen, stopOpenMethods inherited from interface net.minecraft.world.ticks.ContainerSingleItem
clearContent, getContainerSize, getItem, isEmpty, removeItem, removeItemNoUpdate, removeTheItem, setItem, stillValidMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, hasData, removeData, setDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
deserializeNBT, getModelData, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdate, serializeNBTMethods inherited from interface net.minecraft.world.RandomizableContainer
getBlockPos, getLevel, setLootTable, tryLoadLootTable, trySaveLootTable, unpackLootTable 
- 
Field Details
- 
TAG_SHERDS
- See Also:
 
 - 
TAG_ITEM
- See Also:
 
 - 
EVENT_POT_WOBBLES
public static final int EVENT_POT_WOBBLES- See Also:
 
 - 
wobbleStartedAtTick
public long wobbleStartedAtTick - 
lastWobbleStyle
 - 
decorations
 - 
item
 - 
lootTable
 - 
lootTableSeed
protected long lootTableSeed 
 - 
 - 
Constructor Details
- 
DecoratedPotBlockEntity
 
 - 
 - 
Method Details
- 
saveAdditional
- Overrides:
 saveAdditionalin classBlockEntity
 - 
load
- Overrides:
 loadin classBlockEntity
 - 
getUpdatePacket
- Overrides:
 getUpdatePacketin classBlockEntity
 - 
getUpdateTag
- Overrides:
 getUpdateTagin classBlockEntity
 - 
getDirection
 - 
getDecorations
 - 
setFromItem
 - 
getPotAsItem
 - 
createDecoratedPotItem
 - 
getLootTable
- Specified by:
 getLootTablein interfaceRandomizableContainer
 - 
setLootTable
- Specified by:
 setLootTablein interfaceRandomizableContainer
 - 
getLootTableSeed
public long getLootTableSeed()- Specified by:
 getLootTableSeedin interfaceRandomizableContainer
 - 
setLootTableSeed
public void setLootTableSeed(long p_309580_) - Specified by:
 setLootTableSeedin interfaceRandomizableContainer
 - 
getTheItem
- Specified by:
 getTheItemin interfaceContainerSingleItem
 - 
splitTheItem
- Specified by:
 splitTheItemin interfaceContainerSingleItem
 - 
setTheItem
- Specified by:
 setTheItemin interfaceContainerSingleItem
 - 
getContainerBlockEntity
- Specified by:
 getContainerBlockEntityin interfaceContainerSingleItem
 - 
wobble
 - 
triggerEvent
public boolean triggerEvent(int p_306146_, int p_305858_) - Overrides:
 triggerEventin classBlockEntity
 
 -