Class PokeDisplayTileEntity
java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
com.pixelmonmod.pixelmon.blocks.tileentity.PokeDisplayTileEntity
- 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 PokeDisplayTileEntity
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
ConstructorDescriptionPokeDisplayTileEntity
(net.minecraft.core.BlockPos p_155229_, net.minecraft.world.level.block.state.BlockState p_155230_) PokeDisplayTileEntity
(net.minecraft.world.level.block.entity.BlockEntityType<?> p_155228_, net.minecraft.core.BlockPos p_155229_, net.minecraft.world.level.block.state.BlockState p_155230_) -
Method Summary
Modifier and TypeMethodDescriptionint
int
getLabel()
getModel()
net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket
net.minecraft.nbt.CompoundTag
boolean
boolean
isFlying()
boolean
isLocked()
boolean
isLockedBy
(net.minecraft.world.entity.player.Player player) void
load
(net.minecraft.nbt.CompoundTag nbt) void
onDataPacket
(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket pkt) void
saveAdditional
(net.minecraft.nbt.CompoundTag nbt) void
setAnimate
(boolean animate) void
setAnimation
(AnimationType animation) void
setAnimationFrame
(int animationFrame) void
setFlying
(boolean flying) void
void
setLocked
(net.minecraft.world.entity.player.Player player) void
setOriginalForm
(String form) void
setOriginalPalette
(String palette) void
setStoredPoke
(Pokemon storedPoke) void
setTextureMode
(EnumStatueTextureType textureMode) static void
tick
(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, PokeDisplayTileEntity blockEntity) 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, 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
-
PokeDisplayTileEntity
public PokeDisplayTileEntity(net.minecraft.world.level.block.entity.BlockEntityType<?> p_155228_, net.minecraft.core.BlockPos p_155229_, net.minecraft.world.level.block.state.BlockState p_155230_) -
PokeDisplayTileEntity
public PokeDisplayTileEntity(net.minecraft.core.BlockPos p_155229_, net.minecraft.world.level.block.state.BlockState p_155230_)
-
-
Method Details
-
setLocked
public void setLocked(net.minecraft.world.entity.player.Player player) -
isLocked
public boolean isLocked() -
isLockedBy
public boolean isLockedBy(net.minecraft.world.entity.player.Player player) -
getStoredPoke
-
getStoredEntity
-
setStoredPoke
-
getOriginalForm
-
setOriginalForm
-
getOriginalPalette
-
setOriginalPalette
-
getLabel
-
setLabel
-
getTextureMode
-
setTextureMode
-
getAnimation
-
setAnimation
-
getAnimationFrame
public int getAnimationFrame() -
setAnimationFrame
public void setAnimationFrame(int animationFrame) -
isAnimate
public boolean isAnimate() -
setAnimate
public void setAnimate(boolean animate) -
isFlying
public boolean isFlying() -
setFlying
public void setFlying(boolean flying) -
tick
public static void tick(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, PokeDisplayTileEntity blockEntity) -
getUpdatePacket
@Nullable 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 net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket pkt) -
getUpdateTag
public net.minecraft.nbt.CompoundTag getUpdateTag()- Overrides:
getUpdateTag
in classnet.minecraft.world.level.block.entity.BlockEntity
-
saveAdditional
public void saveAdditional(net.minecraft.nbt.CompoundTag nbt) - Overrides:
saveAdditional
in classnet.minecraft.world.level.block.entity.BlockEntity
-
load
public void load(net.minecraft.nbt.CompoundTag nbt) - Overrides:
load
in classnet.minecraft.world.level.block.entity.BlockEntity
-
getFrameCount
public int getFrameCount() -
getAllAnimations
-
getModel
-