Package net.minecraft.tileentity
Class SkullTileEntity
- java.lang.Object
-
- net.minecraftforge.common.capabilities.CapabilityProvider<TileEntity>
-
- net.minecraft.tileentity.TileEntity
-
- net.minecraft.tileentity.SkullTileEntity
-
- All Implemented Interfaces:
ITickableTileEntity
,ICapabilityProvider
,ICapabilitySerializable<CompoundNBT>
,IForgeTileEntity
,INBTSerializable<CompoundNBT>
public class SkullTileEntity extends TileEntity implements ITickableTileEntity
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
isMovingMouth
private int
mouthTickCount
private com.mojang.authlib.GameProfile
owner
private static PlayerProfileCache
profileCache
private static com.mojang.authlib.minecraft.MinecraftSessionService
sessionService
-
Fields inherited from class net.minecraft.tileentity.TileEntity
level, remove, worldPosition
-
Fields inherited from interface net.minecraftforge.common.extensions.IForgeTileEntity
INFINITE_EXTENT_AABB
-
-
Constructor Summary
Constructors Constructor Description SkullTileEntity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getMouthAnimation(float p_184295_1_)
com.mojang.authlib.GameProfile
getOwnerProfile()
SUpdateTileEntityPacket
getUpdatePacket()
CompoundNBT
getUpdateTag()
void
load(BlockState p_230337_1_, CompoundNBT p_230337_2_)
CompoundNBT
save(CompoundNBT p_189515_1_)
void
setOwner(com.mojang.authlib.GameProfile p_195485_1_)
static void
setProfileCache(PlayerProfileCache p_184293_0_)
static void
setSessionService(com.mojang.authlib.minecraft.MinecraftSessionService p_184294_0_)
void
tick()
static com.mojang.authlib.GameProfile
updateGameprofile(com.mojang.authlib.GameProfile p_174884_0_)
private void
updateOwnerProfile()
-
Methods inherited from class net.minecraft.tileentity.TileEntity
clearCache, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getTileData, getType, getViewDistance, hasLevel, isRemoved, loadStatic, logInvalidState, mirror, onChunkUnloaded, onlyOpCanSetNbt, rotate, setChanged, setLevelAndPosition, setPosition, 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.IForgeTileEntity
deserializeNBT, deserializeNBT, getModelData, getRenderBoundingBox, getTileEntity, handleUpdateTag, onDataPacket, onLoad, requestModelDataUpdate, serializeNBT
-
-
-
-
Field Detail
-
profileCache
@Nullable private static PlayerProfileCache profileCache
-
sessionService
@Nullable private static com.mojang.authlib.minecraft.MinecraftSessionService sessionService
-
owner
@Nullable private com.mojang.authlib.GameProfile owner
-
mouthTickCount
private int mouthTickCount
-
isMovingMouth
private boolean isMovingMouth
-
-
Method Detail
-
setProfileCache
public static void setProfileCache(PlayerProfileCache p_184293_0_)
-
setSessionService
public static void setSessionService(com.mojang.authlib.minecraft.MinecraftSessionService p_184294_0_)
-
save
public CompoundNBT save(CompoundNBT p_189515_1_)
- Overrides:
save
in classTileEntity
-
load
public void load(BlockState p_230337_1_, CompoundNBT p_230337_2_)
- Overrides:
load
in classTileEntity
-
tick
public void tick()
- Specified by:
tick
in interfaceITickableTileEntity
-
getMouthAnimation
public float getMouthAnimation(float p_184295_1_)
-
getOwnerProfile
@Nullable public com.mojang.authlib.GameProfile getOwnerProfile()
-
getUpdatePacket
@Nullable public SUpdateTileEntityPacket getUpdatePacket()
- Overrides:
getUpdatePacket
in classTileEntity
-
getUpdateTag
public CompoundNBT getUpdateTag()
- Overrides:
getUpdateTag
in classTileEntity
-
setOwner
public void setOwner(@Nullable com.mojang.authlib.GameProfile p_195485_1_)
-
updateOwnerProfile
private void updateOwnerProfile()
-
updateGameprofile
@Nullable public static com.mojang.authlib.GameProfile updateGameprofile(@Nullable com.mojang.authlib.GameProfile p_174884_0_)
-
-