Package com.pixelmonmod.tcg.tileentity
Class EssenceJarTileEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
com.pixelmonmod.tcg.tileentity.EssenceJarTileEntity
- All Implemented Interfaces:
net.minecraftforge.common.capabilities.ICapabilityProvider
,net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>
,net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>
,net.minecraftforge.common.extensions.IForgeBlockEntity
,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
public class EssenceJarTileEntity
extends net.minecraft.world.level.block.entity.BlockEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>
-
Field Summary
Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity
level, remove, worldPosition
Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
INFINITE_EXTENT_AABB
-
Constructor Summary
ConstructorDescriptionEssenceJarTileEntity
(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState state) EssenceJarTileEntity
(net.minecraft.world.level.block.entity.BlockEntityType<?> blockEntityType, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState state) -
Method Summary
Modifier and TypeMethodDescriptionint
addEssence
(int essence) void
applyValuesToItem
(net.minecraft.world.item.ItemStack stack) getColor()
net.minecraft.network.chat.MutableComponent
int
double
double
net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket
net.minecraft.nbt.CompoundTag
boolean
isFilled()
void
load
(net.minecraft.nbt.CompoundTag tag) void
onDataPacket
(net.minecraft.network.Connection network, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket packet) double
void
save0
(net.minecraft.nbt.CompoundTag tag) protected void
saveAdditional
(net.minecraft.nbt.CompoundTag tag) void
setColor
(net.minecraft.world.item.DyeColor dyeColor) setColorName
(net.minecraft.network.chat.MutableComponent colorName) setColorName
(net.minecraft.world.item.DyeColor dyeColor) void
setEssence
(int essence) boolean
setValuesFromItem
(net.minecraft.world.item.ItemStack stack) Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity
addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setLevel, setRemoved, triggerEvent
Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider
areCapsCompatible, areCapsCompatible, 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.minecraftforge.common.capabilities.ICapabilityProvider
getCapability, getCapability
Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity
deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onLoad, requestModelDataUpdate, serializeNBT
-
Constructor Details
-
EssenceJarTileEntity
public EssenceJarTileEntity(net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState state) -
EssenceJarTileEntity
public EssenceJarTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> blockEntityType, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState state)
-
-
Method Details
-
saveAdditional
protected void saveAdditional(net.minecraft.nbt.CompoundTag tag) - Overrides:
saveAdditional
in classnet.minecraft.world.level.block.entity.BlockEntity
-
save0
public void save0(net.minecraft.nbt.CompoundTag tag) -
load
public void load(net.minecraft.nbt.CompoundTag tag) - Overrides:
load
in classnet.minecraft.world.level.block.entity.BlockEntity
-
recalculateFillPercent
public double recalculateFillPercent() -
setChanged
public void setChanged()- Overrides:
setChanged
in classnet.minecraft.world.level.block.entity.BlockEntity
-
setValuesFromItem
public boolean setValuesFromItem(net.minecraft.world.item.ItemStack stack) -
applyValuesToItem
public void applyValuesToItem(net.minecraft.world.item.ItemStack stack) -
getUpdateTag
public net.minecraft.nbt.CompoundTag getUpdateTag()- Overrides:
getUpdateTag
in classnet.minecraft.world.level.block.entity.BlockEntity
-
getUpdatePacket
public net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket getUpdatePacket()- Overrides:
getUpdatePacket
in classnet.minecraft.world.level.block.entity.BlockEntity
-
onDataPacket
public void onDataPacket(net.minecraft.network.Connection network, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket packet) -
getColor
-
getEssence
public int getEssence() -
addEssence
public int addEssence(int essence) -
setEssence
public void setEssence(int essence) -
getFillPercent
public double getFillPercent() -
getFillPercentDirect
public double getFillPercentDirect() -
isFilled
public boolean isFilled() -
setColor
-
setColor
-
setColorName
-
setColorName
-
getColorName
public net.minecraft.network.chat.MutableComponent getColorName()
-