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 Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.block.entity.BlockEntity
BlockEntity.ComponentHelper, BlockEntity.DataComponentInput
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
CapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
Nested classes/interfaces inherited from interface net.minecraft.world.ticks.ContainerSingleItem
ContainerSingleItem.BlockContainerSingleItem
-
Field Summary
Modifier and TypeFieldDescriptionprivate PotDecorations
static final int
private ItemStack
protected ResourceKey
<LootTable> protected long
static final String
static final String
long
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
Fields inherited from interface net.minecraft.world.Container
DEFAULT_DISTANCE_BUFFER
Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
Fields inherited from interface net.minecraft.world.RandomizableContainer
LOOT_TABLE_SEED_TAG, LOOT_TABLE_TAG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
static ItemStack
createDecoratedPotItem
(PotDecorations p_331852_) long
getUpdateTag
(HolderLookup.Provider p_334226_) protected void
loadAdditional
(CompoundTag p_332304_, HolderLookup.Provider p_334010_) void
removeComponentsFromTag
(CompoundTag p_332438_) protected void
saveAdditional
(CompoundTag p_272957_, HolderLookup.Provider p_327915_) void
setFromItem
(ItemStack p_273109_) void
setLootTable
(ResourceKey<LootTable> p_334371_) void
setLootTableSeed
(long p_311200_) void
setTheItem
(ItemStack p_310130_) splitTheItem
(int p_313165_) boolean
triggerEvent
(int p_309634_, int p_310889_) void
wobble
(DecoratedPotBlockEntity.WobbleStyle p_312241_) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, 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, setRemoved
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.Container
canPlaceItem, canTakeItem, countItem, getMaxStackSize, getMaxStackSize, hasAnyMatching, hasAnyOf, setChanged, startOpen, stopOpen
Methods inherited from interface net.minecraft.world.ticks.ContainerSingleItem
clearContent, getContainerSize, getItem, isEmpty, removeItem, removeItemNoUpdate, removeTheItem, setItem
Methods inherited from interface net.minecraft.world.ticks.ContainerSingleItem.BlockContainerSingleItem
stillValid
Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onDataPacket, onLoad, requestModelDataUpdate
Methods 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:
saveAdditional
in classBlockEntity
-
loadAdditional
- Overrides:
loadAdditional
in classBlockEntity
-
getUpdatePacket
- Overrides:
getUpdatePacket
in classBlockEntity
-
getUpdateTag
- Overrides:
getUpdateTag
in classBlockEntity
-
getDirection
-
getDecorations
-
setFromItem
-
getPotAsItem
-
createDecoratedPotItem
-
getLootTable
- Specified by:
getLootTable
in interfaceRandomizableContainer
-
setLootTable
- Specified by:
setLootTable
in interfaceRandomizableContainer
-
getLootTableSeed
public long getLootTableSeed()- Specified by:
getLootTableSeed
in interfaceRandomizableContainer
-
setLootTableSeed
public void setLootTableSeed(long p_311200_) - Specified by:
setLootTableSeed
in interfaceRandomizableContainer
-
collectImplicitComponents
- Overrides:
collectImplicitComponents
in classBlockEntity
-
applyImplicitComponents
- Overrides:
applyImplicitComponents
in classBlockEntity
-
removeComponentsFromTag
- Overrides:
removeComponentsFromTag
in classBlockEntity
-
getTheItem
- Specified by:
getTheItem
in interfaceContainerSingleItem
-
splitTheItem
- Specified by:
splitTheItem
in interfaceContainerSingleItem
-
setTheItem
- Specified by:
setTheItem
in interfaceContainerSingleItem
-
getContainerBlockEntity
- Specified by:
getContainerBlockEntity
in interfaceContainerSingleItem.BlockContainerSingleItem
-
wobble
-
triggerEvent
public boolean triggerEvent(int p_309634_, int p_310889_) - Overrides:
triggerEvent
in classBlockEntity
-