Class GymSignTileEntity

java.lang.Object
net.minecraftforge.common.capabilities.CapabilityProvider<net.minecraft.world.level.block.entity.BlockEntity>
net.minecraft.world.level.block.entity.BlockEntity
com.pixelmonmod.pixelmon.blocks.tileentity.GymSignTileEntity
All Implemented Interfaces:
ISpecialTexture, net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.capabilities.ICapabilityProviderImpl<net.minecraft.world.level.block.entity.BlockEntity>, net.minecraftforge.common.capabilities.ICapabilitySerializable<net.minecraft.nbt.CompoundTag>, net.minecraftforge.common.extensions.IForgeBlockEntity, net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>

public class GymSignTileEntity extends net.minecraft.world.level.block.entity.BlockEntity implements ISpecialTexture
Tile entity form of a gym sign. Created by clienthax on 7/3/2015.
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    net.minecraftforge.common.capabilities.CapabilityProvider.AsField<B extends net.minecraftforge.common.capabilities.ICapabilityProviderImpl<B>>
  • Field Summary

    Fields inherited from class net.minecraft.world.level.block.entity.BlockEntity

    level, remove, worldPosition

    Fields inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity

    INFINITE_EXTENT_AABB
  • Constructor Summary

    Constructors
    Constructor
    Description
    GymSignTileEntity(GymSignType gymSignType, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the color of the sign.
    net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack>
     
     
    net.minecraft.world.item.ItemStack
    Gets the item in the sign.
    Gets the UUID of the player who placed the sign.
    net.minecraft.resources.ResourceLocation
     
    net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket
     
    net.minecraft.nbt.CompoundTag
     
    boolean
     
    void
    load(net.minecraft.nbt.CompoundTag nbt)
     
    void
    onDataPacket(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket pkt)
     
    void
    saveAdditional(net.minecraft.nbt.CompoundTag nbt)
     
    void
    Updates the tile entity client-side.
    void
    setColour(String colour)
    Sets the color of the sign.
    void
    setDroppable(boolean b)
     
    void
    setItemInSign(net.minecraft.world.item.ItemStack item)
    Sets the item in the sign.
    void
    setOwner(UUID owner)
    Sets the UUID of the player who placed the sign.

    Methods inherited from class net.minecraft.world.level.block.entity.BlockEntity

    addEntityType, clearRemoved, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, loadStatic, onChunkUnloaded, onlyOpCanSetNbt, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setLevel, setRemoved, triggerEvent

    Methods inherited from class net.minecraftforge.common.capabilities.CapabilityProvider

    areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability, getCapability

    Methods inherited from interface net.minecraftforge.common.extensions.IForgeBlockEntity

    deserializeNBT, getModelData, getRenderBoundingBox, handleUpdateTag, hasCustomOutlineRendering, onLoad, requestModelDataUpdate, serializeNBT
  • Constructor Details

    • GymSignTileEntity

      public GymSignTileEntity(GymSignType gymSignType, net.minecraft.core.BlockPos blockPos, net.minecraft.world.level.block.state.BlockState blockState)
  • Method Details

    • load

      public void load(net.minecraft.nbt.CompoundTag nbt)
      Overrides:
      load in class net.minecraft.world.level.block.entity.BlockEntity
    • saveAdditional

      public void saveAdditional(net.minecraft.nbt.CompoundTag nbt)
      Overrides:
      saveAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • getColour

      public String getColour()
      Gets the color of the sign.
      Returns:
      The color of the sign.
    • setColour

      public void setColour(String colour)
      Sets the color of the sign.
      Parameters:
      colour - The color of the sign.
    • getTexture

      public net.minecraft.resources.ResourceLocation getTexture()
      Specified by:
      getTexture in interface ISpecialTexture
    • sendChanges

      public void sendChanges()
      Updates the tile entity client-side.
    • getUpdateTag

      public net.minecraft.nbt.CompoundTag getUpdateTag()
      Overrides:
      getUpdateTag in class net.minecraft.world.level.block.entity.BlockEntity
    • getUpdatePacket

      public net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket getUpdatePacket()
      Overrides:
      getUpdatePacket in class net.minecraft.world.level.block.entity.BlockEntity
    • onDataPacket

      public void onDataPacket(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket pkt)
      Specified by:
      onDataPacket in interface net.minecraftforge.common.extensions.IForgeBlockEntity
    • getOwnerUUID

      public UUID getOwnerUUID()
      Gets the UUID of the player who placed the sign.
      Returns:
      The UUID of the player who placed the sign.
    • setOwner

      public void setOwner(UUID owner)
      Sets the UUID of the player who placed the sign.
      Parameters:
      owner - The UUID of the player who placed the sign.
    • getItemInSign

      public net.minecraft.world.item.ItemStack getItemInSign()
      Gets the item in the sign.
      Returns:
      The item in the sign.
    • getContents

      public net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getContents()
    • setItemInSign

      public void setItemInSign(net.minecraft.world.item.ItemStack item)
      Sets the item in the sign.
      Parameters:
      item - The item in the sign.
    • setDroppable

      public void setDroppable(boolean b)
    • isDroppable

      public boolean isDroppable()
    • getGymSignType

      public GymSignType getGymSignType()