public class SkullBlockEntity extends BlockEntity implements Tickable
Modifier and Type | Field and 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 |
pos, removed, world
Constructor and Description |
---|
SkullBlockEntity() |
Modifier and Type | Method and 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() |
applyMirror, applyRotation, cancelRemoval, copyItemDataRequiresOperator, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markInvalid, markRemoved, onSyncedBlockEvent, populateCrashReport, resetBlock, setLocation, setPos
@Nullable private static com.mojang.authlib.minecraft.MinecraftSessionService sessionService
@Nullable private com.mojang.authlib.GameProfile owner
private int ticksPowered
private boolean powered
public static void setUserCache(UserCache value)
public static void setSessionService(com.mojang.authlib.minecraft.MinecraftSessionService value)
public CompoundTag toTag(CompoundTag tag)
toTag
in class BlockEntity
public void fromTag(BlockState state, CompoundTag tag)
fromTag
in class BlockEntity
@Environment(value=CLIENT) public float getTicksPowered(float tickDelta)
@Environment(value=CLIENT) @Nullable public com.mojang.authlib.GameProfile getOwner()
@Nullable public BlockEntityUpdateS2CPacket toUpdatePacket()
toUpdatePacket
in class BlockEntity
public CompoundTag toInitialChunkDataTag()
toInitialChunkDataTag
in class BlockEntity
public void setOwnerAndType(@Nullable com.mojang.authlib.GameProfile gameProfile)
private void loadOwnerProperties()