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.GameProfileownerprivate booleanpoweredprivate static com.mojang.authlib.minecraft.MinecraftSessionServicesessionServiceprivate intticksPoweredprivate static UserCacheuserCacheFields 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 voidfromTag(CompoundTag tag)com.mojang.authlib.GameProfilegetOwner()floatgetTicksPowered(float tickDelta)private voidloadOwnerProperties()static com.mojang.authlib.GameProfileloadProperties(com.mojang.authlib.GameProfile profile)static voidmethod_31695(World world, BlockPos blockPos, BlockState blockState, SkullBlockEntity skullBlockEntity)voidsetOwnerAndType(com.mojang.authlib.GameProfile gameProfile)static voidsetSessionService(com.mojang.authlib.minecraft.MinecraftSessionService value)static voidsetUserCache(UserCache value)CompoundTagtoInitialChunkDataTag()CompoundTagtoTag(CompoundTag tag)BlockEntityUpdateS2CPackettoUpdatePacket()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:
toTagin classBlockEntity
-
fromTag
- Overrides:
fromTagin 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:
toUpdatePacketin classBlockEntity
-
toInitialChunkDataTag
- Overrides:
toInitialChunkDataTagin classBlockEntity
-
setOwnerAndType
-
loadOwnerProperties
private void loadOwnerProperties() -
loadProperties
-