Package net.minecraft.block.entity
Class SkullBlockEntity
java.lang.Object
net.minecraft.block.entity.BlockEntity
net.minecraft.block.entity.SkullBlockEntity
public class SkullBlockEntity extends BlockEntity
-
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(BlockPos blockPos, BlockState blockState)
-
Method Summary
Modifier and Type Method Description void
fromTag(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)
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()
Methods inherited from class net.minecraft.block.entity.BlockEntity
cancelRemoval, copyItemDataRequiresOperator, createFromTag, getCachedState, getPos, getSquaredRenderDistance, getType, getWorld, hasWorld, isRemoved, markDirty, markDirty, markRemoved, onSyncedBlockEvent, populateCrashReport, setCachedState, setWorld
-
Field Details
-
userCache
-
sessionService
-
owner
-
ticksPowered
private int ticksPowered -
powered
private boolean powered
-
-
Constructor Details
-
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
-
method_31695
public static void method_31695(World world, BlockPos blockPos, BlockState blockState, SkullBlockEntity skullBlockEntity) -
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
-