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>,Clearable,Container,RandomizableContainer,ContainerSingleItem,ContainerSingleItem.BlockContainerSingleItem,IAttachmentHolder,IBlockEntityExtension
public class DecoratedPotBlockEntity
extends BlockEntity
implements RandomizableContainer, ContainerSingleItem.BlockContainerSingleItem
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
BlockEntity.BlockEntityPathElementNested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
AttachmentHolder.AsFieldNested classes/interfaces inherited from interface net.minecraft.world.Container
Container.ContainerIteratorNested classes/interfaces inherited from interface net.minecraft.world.ticks.ContainerSingleItem
ContainerSingleItem.BlockContainerSingleItem -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate PotDecorationsstatic final intprivate ItemStackprotected ResourceKey<LootTable> protected 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_BUFFERFields inherited from interface net.minecraft.world.RandomizableContainer
LOOT_TABLE_SEED_TAG, LOOT_TABLE_TAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyImplicitComponents(DataComponentGetter pComponentGetter) protected voidcollectImplicitComponents(DataComponentMap.Builder pComponents) static ItemStackcreateDecoratedPotItem(PotDecorations pDecorations) longgetUpdateTag(HolderLookup.Provider pRegistries) protected voidloadAdditional(ValueInput pInput) voidremoveComponentsFromTag(ValueOutput pOutput) protected voidsaveAdditional(ValueOutput pOutput) voidsetLootTable(ResourceKey<LootTable> pLootTable) voidsetLootTableSeed(long pSeed) voidsetTheItem(ItemStack pItem) splitTheItem(int pAmount) booleantriggerEvent(int pId, int pType) voidMethods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getNameForReporting, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, parseCustomNameSafe, preRemoveSideEffects, problemPath, removeData, saveCustomOnly, saveCustomOnly, saveWithFullMetadata, saveWithFullMetadata, saveWithId, saveWithoutMetadata, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, setRemoved, syncDataMethods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder
deserializeAttachments, getData, getExistingDataOrNull, 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, getMaxStackSize, hasAnyMatching, hasAnyOf, iterator, setChanged, startOpen, stopOpenMethods inherited from interface net.minecraft.world.ticks.ContainerSingleItem
clearContent, getContainerSize, getItem, isEmpty, removeItem, removeItemNoUpdate, removeTheItem, setItemMethods inherited from interface net.minecraft.world.ticks.ContainerSingleItem.BlockContainerSingleItem
stillValidMethods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder
getData, getExistingData, getExistingData, getExistingDataOrNull, hasData, removeData, setData, syncDataMethods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
getModelData, handleUpdateTag, invalidateCapabilities, onChunkUnloaded, onDataPacket, onLoad, requestModelDataUpdateMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods 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
-
loadAdditional
- Overrides:
loadAdditionalin classBlockEntity
-
getUpdatePacket
- Overrides:
getUpdatePacketin classBlockEntity
-
getUpdateTag
- Overrides:
getUpdateTagin classBlockEntity
-
getDirection
-
getDecorations
-
createDecoratedPotItem
-
getLootTable
- Specified by:
getLootTablein interfaceRandomizableContainer
-
setLootTable
- Specified by:
setLootTablein interfaceRandomizableContainer
-
getLootTableSeed
public long getLootTableSeed()- Specified by:
getLootTableSeedin interfaceRandomizableContainer
-
setLootTableSeed
public void setLootTableSeed(long pSeed) - 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 pId, int pType) - Overrides:
triggerEventin classBlockEntity
-