Class DecoratedPotBlockEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
net.minecraft.world.level.block.entity.DecoratedPotBlockEntity
- All Implemented Interfaces:
- Clearable,- Container,- RandomizableContainer,- ContainerSingleItem,- ContainerSingleItem.BlockContainerSingleItem,- ICapabilityProvider,- ICapabilityProviderImpl<BlockEntity>,- IForgeBlockEntity
public class DecoratedPotBlockEntity
extends BlockEntity
implements RandomizableContainer, ContainerSingleItem.BlockContainerSingleItem
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntityBlockEntity.ComponentHelper, BlockEntity.DataComponentInputNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProviderCapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>Nested classes/interfaces inherited from interface net.minecraft.world.ticks.ContainerSingleItemContainerSingleItem.BlockContainerSingleItem
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate PotDecorationsstatic final intprivate ItemStackprotected ResourceKey<LootTable> protected longstatic final Stringstatic final StringlongFields inherited from class net.minecraft.world.level.block.entity.BlockEntitylevel, remove, worldPositionFields inherited from interface net.minecraft.world.ContainerDEFAULT_DISTANCE_BUFFERFields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntityINFINITE_EXTENT_AABBFields inherited from interface net.minecraft.world.RandomizableContainerLOOT_TABLE_SEED_TAG, LOOT_TABLE_TAG
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidprotected voidstatic ItemStackcreateDecoratedPotItem(PotDecorations p_331852_) longgetUpdateTag(HolderLookup.Provider p_334226_) protected voidloadAdditional(CompoundTag p_332304_, HolderLookup.Provider p_334010_) voidremoveComponentsFromTag(CompoundTag p_332438_) protected voidsaveAdditional(CompoundTag p_272957_, HolderLookup.Provider p_327915_) voidsetFromItem(ItemStack p_273109_) voidsetLootTable(ResourceKey<LootTable> p_334371_) voidsetLootTableSeed(long p_311200_) voidsetTheItem(ItemStack p_310130_) splitTheItem(int p_313165_) booleantriggerEvent(int p_309634_, int p_310889_) voidwobble(DecoratedPotBlockEntity.WobbleStyle p_312241_) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntityaddEntityType, applyComponents, applyComponentsFromItemStack, clearRemoved, collectComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPosFromTag, getType, hasLevel, isRemoved, loadCustomOnly, loadStatic, loadWithComponents, onChunkUnloaded, onlyOpCanSetNbt, parseCustomNameSafe, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setLevel, setRemovedMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProviderdeserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.ContainercanPlaceItem, canTakeItem, countItem, getMaxStackSize, getMaxStackSize, hasAnyMatching, hasAnyOf, setChanged, startOpen, stopOpenMethods inherited from interface net.minecraft.world.ticks.ContainerSingleItemclearContent, getContainerSize, getItem, isEmpty, removeItem, removeItemNoUpdate, removeTheItem, setItemMethods inherited from interface net.minecraft.world.ticks.ContainerSingleItem.BlockContainerSingleItemstillValidMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntitygetModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdateMethods inherited from interface net.minecraft.world.RandomizableContainergetBlockPos, getLevel, setLootTable, tryLoadLootTable, trySaveLootTable, unpackLootTable
- 
Field Details- 
TAG_SHERDS- See Also:
 
- 
TAG_ITEM- See Also:
 
- 
EVENT_POT_WOBBLESpublic static final int EVENT_POT_WOBBLES- See Also:
 
- 
wobbleStartedAtTickpublic long wobbleStartedAtTick
- 
lastWobbleStyle
- 
decorations
- 
item
- 
lootTable
- 
lootTableSeedprotected long lootTableSeed
 
- 
- 
Constructor Details- 
DecoratedPotBlockEntity
 
- 
- 
Method Details- 
saveAdditional- Overrides:
- saveAdditionalin class- BlockEntity
 
- 
loadAdditional- Overrides:
- loadAdditionalin class- BlockEntity
 
- 
getUpdatePacket- Overrides:
- getUpdatePacketin class- BlockEntity
 
- 
getUpdateTag- Overrides:
- getUpdateTagin class- BlockEntity
 
- 
getDirection
- 
getDecorations
- 
setFromItem
- 
getPotAsItem
- 
createDecoratedPotItem
- 
getLootTable- Specified by:
- getLootTablein interface- RandomizableContainer
 
- 
setLootTable- Specified by:
- setLootTablein interface- RandomizableContainer
 
- 
getLootTableSeedpublic long getLootTableSeed()- Specified by:
- getLootTableSeedin interface- RandomizableContainer
 
- 
setLootTableSeedpublic void setLootTableSeed(long p_311200_) - Specified by:
- setLootTableSeedin interface- RandomizableContainer
 
- 
collectImplicitComponents- Overrides:
- collectImplicitComponentsin class- BlockEntity
 
- 
applyImplicitComponents- Overrides:
- applyImplicitComponentsin class- BlockEntity
 
- 
removeComponentsFromTag- Overrides:
- removeComponentsFromTagin class- BlockEntity
 
- 
getTheItem- Specified by:
- getTheItemin interface- ContainerSingleItem
 
- 
splitTheItem- Specified by:
- splitTheItemin interface- ContainerSingleItem
 
- 
setTheItem- Specified by:
- setTheItemin interface- ContainerSingleItem
 
- 
getContainerBlockEntity- Specified by:
- getContainerBlockEntityin interface- ContainerSingleItem.BlockContainerSingleItem
 
- 
wobble
- 
triggerEventpublic boolean triggerEvent(int p_309634_, int p_310889_) - Overrides:
- triggerEventin class- BlockEntity
 
 
-