Package net.minecraft.block.entity
Class SkullBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.SkullBlockEntity
- All Implemented Interfaces:
Tickable
public class SkullBlockEntity extends BlockEntity implements Tickable
-
Field Summary
Fields Modifier and Type Field Description private com.mojang.authlib.GameProfile
owner
private boolean
powered
private static com.mojang.authlib.minecraft.MinecraftSessionService
sessionService
private int
ticksPowered
private static UserCache
userCache
Fields inherited from class net.minecraft.block.entity.BlockEntity
pos, removed, world
-
Constructor Summary
Constructors Constructor Description SkullBlockEntity()
-
Method Summary
Modifier and Type Method Description void
fromTag(BlockState state, CompoundTag tag)
com.mojang.authlib.GameProfile
getOwner()
float
getTicksPowered(float tickDelta)
private void
loadOwnerProperties()
static com.mojang.authlib.GameProfile
loadProperties(com.mojang.authlib.GameProfile profile)
void
setOwnerAndType(com.mojang.authlib.GameProfile gameProfile)
static void
setSessionService(com.mojang.authlib.minecraft.MinecraftSessionService value)
static void
setUserCache(UserCache value)
void
tick()
CompoundTag
toInitialChunkDataTag()
CompoundTag
toTag(CompoundTag tag)
BlockEntityUpdateS2CPacket
toUpdatePacket()
Methods inherited from class net.minecraft.block.entity.BlockEntity
applyMirror, applyRotation, cancelRemoval, copyItemDataRequiresOperator, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markInvalid, markRemoved, onSyncedBlockEvent, populateCrashReport, resetBlock, setLocation, setPos
-
Field Details
-
userCache
-
sessionService
-
owner
-
ticksPowered
private int ticksPowered -
powered
private boolean powered
-
-
Constructor Details
-
SkullBlockEntity
public SkullBlockEntity()
-
-
Method Details
-
setUserCache
-
setSessionService
public static void setSessionService(com.mojang.authlib.minecraft.MinecraftSessionService value) -
toTag
- Overrides:
toTag
in classBlockEntity
-
fromTag
- Overrides:
fromTag
in classBlockEntity
-
tick
public void tick() -
getTicksPowered
@Environment(CLIENT) public float getTicksPowered(float tickDelta) -
getOwner
-
toUpdatePacket
- Overrides:
toUpdatePacket
in classBlockEntity
-
toInitialChunkDataTag
- Overrides:
toInitialChunkDataTag
in classBlockEntity
-
setOwnerAndType
-
loadOwnerProperties
private void loadOwnerProperties() -
loadProperties
-