public class SkullBlockEntity extends BlockEntity
| 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(BlockPos blockPos,
BlockState blockState) |
| Modifier and Type | Method and Description |
|---|---|
void |
fromTag(CompoundTag compoundTag) |
com.mojang.authlib.GameProfile |
getOwner() |
float |
getTicksPowered(float tickDelta) |
private void |
loadOwnerProperties() |
static com.mojang.authlib.GameProfile |
loadProperties(com.mojang.authlib.GameProfile profile) |
static void |
method_31695(World world,
BlockPos blockPos,
BlockState blockState,
SkullBlockEntity skullBlockEntity) |
void |
setOwnerAndType(com.mojang.authlib.GameProfile gameProfile) |
static void |
setSessionService(com.mojang.authlib.minecraft.MinecraftSessionService value) |
static void |
setUserCache(UserCache value) |
CompoundTag |
toInitialChunkDataTag() |
CompoundTag |
toTag(CompoundTag tag) |
BlockEntityUpdateS2CPacket |
toUpdatePacket() |
cancelRemoval, copyItemDataRequiresOperator, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, setCachedState, setWorld@Nullable private static com.mojang.authlib.minecraft.MinecraftSessionService sessionService
@Nullable private com.mojang.authlib.GameProfile owner
private int ticksPowered
private boolean powered
public SkullBlockEntity(BlockPos blockPos, BlockState blockState)
public static void setUserCache(UserCache value)
public static void setSessionService(com.mojang.authlib.minecraft.MinecraftSessionService value)
public CompoundTag toTag(CompoundTag tag)
toTag in class BlockEntitypublic void fromTag(CompoundTag compoundTag)
fromTag in class BlockEntitypublic static void method_31695(World world, BlockPos blockPos, BlockState blockState, SkullBlockEntity skullBlockEntity)
@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 BlockEntitypublic CompoundTag toInitialChunkDataTag()
toInitialChunkDataTag in class BlockEntitypublic void setOwnerAndType(@Nullable com.mojang.authlib.GameProfile gameProfile)
private void loadOwnerProperties()