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:
Iterable<ItemStack>, TypedInstance<BlockEntityType<?>>, DebugValueSource, Clearable, Container, SlotProvider, RandomizableContainer, ContainerSingleItem, ContainerSingleItem.BlockContainerSingleItem, IAttachmentHolder, ContainerExtension, IBlockEntityExtension
public class DecoratedPotBlockEntity
extends BlockEntity
implements ContainerSingleItem.BlockContainerSingleItem, RandomizableContainer
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class AttachmentHolder
AttachmentHolder.AsFieldNested classes/interfaces inherited from interface Container
Container.ContainerIteratorNested classes/interfaces inherited from interface ContainerSingleItem
ContainerSingleItem.BlockContainerSingleItemNested classes/interfaces inherited from interface DebugValueSource
DebugValueSource.Registration, DebugValueSource.ValueGetter<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PotDecorationsstatic final intprivate ItemStack@Nullable DecoratedPotBlockEntity.WobbleStyleprotected @Nullable ResourceKey<LootTable> protected longstatic final Stringstatic final StringlongFields inherited from class BlockEntity
level, remove, worldPositionFields inherited from class AttachmentHolder
ATTACHMENTS_NBT_KEYFields inherited from interface Container
DEFAULT_DISTANCE_BUFFERFields inherited from interface RandomizableContainer
LOOT_TABLE_SEED_TAG, LOOT_TABLE_TAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyImplicitComponents(DataComponentGetter components) protected voidcollectImplicitComponents(DataComponentMap.Builder components) static ItemStackcreateDecoratedPotInstance(PotDecorations decorations) static ItemStackTemplatecreateDecoratedPotTemplate(PotDecorations decorations) @Nullable ResourceKey<LootTable> longgetUpdateTag(HolderLookup.Provider registries) protected voidloadAdditional(ValueInput input) voidremoveComponentsFromTag(ValueOutput output) protected voidsaveAdditional(ValueOutput output) voidsetLootTable(@Nullable ResourceKey<LootTable> lootTable) voidsetLootTableSeed(long lootTableSeed) voidsetTheItem(ItemStack itemStack) splitTheItem(int count) booleantriggerEvent(int event, int data) voidwobble(DecoratedPotBlockEntity.WobbleStyle wobbleStyle) Methods inherited from class BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getAndClearAttachmentTypesToSync, getBlockPos, getBlockState, getLevel, getNameForReporting, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, preRemoveSideEffects, problemPath, registerDebugValues, removeData, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, setRemoved, syncData, typeHolderMethods inherited from class AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, hasAttachments, hasData, serializeAttachmentsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Container
canPlaceItem, canTakeItem, countItem, getEntitiesWithContainerOpen, getMaxStackSize, getMaxStackSize, getSlot, hasAnyMatching, hasAnyOf, iterator, setChanged, startOpen, stopOpenMethods inherited from interface ContainerExtension
onTransfer, setItemMethods inherited from interface ContainerSingleItem
clearContent, getContainerSize, getItem, isEmpty, removeItem, removeItemNoUpdate, removeTheItem, setItemMethods inherited from interface ContainerSingleItem.BlockContainerSingleItem
stillValidMethods inherited from interface IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncDataMethods inherited from interface IBlockEntityExtension
getModelData, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdateMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface RandomizableContainer
getBlockPos, getLevel, setLootTable, tryLoadLootTable, trySaveLootTable, unpackLootTableMethods inherited from interface SlotProvider
getSlotsFromRange
-
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
-
loadAdditional
- Overrides:
loadAdditionalin classBlockEntity
-
getUpdatePacket
- Overrides:
getUpdatePacketin classBlockEntity
-
getUpdateTag
- Overrides:
getUpdateTagin classBlockEntity
-
getDirection
-
getDecorations
-
createDecoratedPotTemplate
-
createDecoratedPotInstance
-
getLootTable
- Specified by:
getLootTablein interfaceRandomizableContainer
-
setLootTable
- Specified by:
setLootTablein interfaceRandomizableContainer
-
getLootTableSeed
public long getLootTableSeed()- Specified by:
getLootTableSeedin interfaceRandomizableContainer
-
setLootTableSeed
public void setLootTableSeed(long lootTableSeed) - Specified by:
setLootTableSeedin interfaceRandomizableContainer
-
collectImplicitComponents
- Overrides:
collectImplicitComponentsin classBlockEntity
-
applyImplicitComponents
- Overrides:
applyImplicitComponentsin classBlockEntity
-
removeComponentsFromTag
- Overrides:
removeComponentsFromTagin classBlockEntity
-
getTheItem
- Specified by:
getTheItemin interfaceContainerSingleItem
-
splitTheItem
- Specified by:
splitTheItemin interfaceContainerSingleItem
-
setTheItem
- Specified by:
setTheItemin interfaceContainerSingleItem
-
getContainerBlockEntity
- Specified by:
getContainerBlockEntityin interfaceContainerSingleItem.BlockContainerSingleItem
-
wobble
-
triggerEvent
public boolean triggerEvent(int event, int data) - Overrides:
triggerEventin classBlockEntity
-