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 Details

    • userCache

      @Nullable private static UserCache userCache
    • sessionService

      @Nullable private static com.mojang.authlib.minecraft.MinecraftSessionService sessionService
    • owner

      @Nullable private com.mojang.authlib.GameProfile owner
    • ticksPowered

      private int ticksPowered
    • powered

      private boolean powered
  • Constructor Details

    • SkullBlockEntity

      public SkullBlockEntity()
  • Method Details

    • setUserCache

      public static void setUserCache​(UserCache value)
    • setSessionService

      public static void setSessionService​(com.mojang.authlib.minecraft.MinecraftSessionService value)
    • toTag

      public CompoundTag toTag​(CompoundTag tag)
      Overrides:
      toTag in class BlockEntity
    • fromTag

      public void fromTag​(BlockState state, CompoundTag tag)
      Overrides:
      fromTag in class BlockEntity
    • tick

      public void tick()
      Specified by:
      tick in interface Tickable
    • getTicksPowered

      @Environment(CLIENT) public float getTicksPowered​(float tickDelta)
    • getOwner

      @Environment(CLIENT) @Nullable public com.mojang.authlib.GameProfile getOwner()
    • toUpdatePacket

      @Nullable public BlockEntityUpdateS2CPacket toUpdatePacket()
      Overrides:
      toUpdatePacket in class BlockEntity
    • toInitialChunkDataTag

      public CompoundTag toInitialChunkDataTag()
      Overrides:
      toInitialChunkDataTag in class BlockEntity
    • setOwnerAndType

      public void setOwnerAndType​(@Nullable com.mojang.authlib.GameProfile gameProfile)
    • loadOwnerProperties

      private void loadOwnerProperties()
    • loadProperties

      @Nullable public static com.mojang.authlib.GameProfile loadProperties​(@Nullable com.mojang.authlib.GameProfile profile)