Class GymSignTileEntity

java.lang.Object
net.neoforged.neoforge.attachment.AttachmentHolder
net.minecraft.world.level.block.entity.BlockEntity
com.pixelmonmod.pixelmon.blocks.tileentity.GymSignTileEntity
All Implemented Interfaces:
ISpecialTexture, net.neoforged.neoforge.attachment.IAttachmentHolder, net.neoforged.neoforge.common.extensions.IBlockEntityExtension

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.minecraft.world.level.block.entity.BlockEntity

    net.minecraft.world.level.block.entity.BlockEntity.DataComponentInput

    Nested classes/interfaces inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    net.neoforged.neoforge.attachment.AttachmentHolder.AsField
  • Field Summary

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

    level, remove, worldPosition

    Fields inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    ATTACHMENTS_NBT_KEY
  • 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
    getUpdateTag(net.minecraft.core.HolderLookup.Provider lookup)
     
    boolean
     
    void
    loadAdditional(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider lookup)
     
    void
    onDataPacket(net.minecraft.network.Connection net, net.minecraft.network.protocol.game.ClientboundBlockEntityDataPacket pkt, net.minecraft.core.HolderLookup.Provider lookup)
     
    void
    saveAdditional(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider lookup)
     
    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, applyComponents, applyComponentsFromItemStack, applyImplicitComponents, clearRemoved, collectComponents, collectImplicitComponents, components, fillCrashReportCategory, getBlockPos, getBlockState, getLevel, getPersistentData, getPosFromTag, getType, hasLevel, isRemoved, isValidBlockState, loadCustomOnly, loadStatic, loadWithComponents, onlyOpCanSetNbt, parseCustomNameSafe, removeComponentsFromTag, removeData, saveCustomAndMetadata, saveCustomOnly, saveToItem, saveWithFullMetadata, saveWithId, saveWithoutMetadata, setBlockState, setChanged, setChanged, setComponents, setData, setLevel, setRemoved, triggerEvent

    Methods inherited from class net.neoforged.neoforge.attachment.AttachmentHolder

    deserializeAttachments, getData, getExistingData, hasAttachments, hasData, serializeAttachments

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.neoforged.neoforge.attachment.IAttachmentHolder

    getData, getExistingData, hasData, removeData, setData

    Methods inherited from interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension

    getModelData, handleUpdateTag, hasCustomOutlineRendering, invalidateCapabilities, onChunkUnloaded, onLoad, requestModelDataUpdate
  • Constructor Details

    • GymSignTileEntity

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

    • loadAdditional

      public void loadAdditional(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider lookup)
      Overrides:
      loadAdditional in class net.minecraft.world.level.block.entity.BlockEntity
    • saveAdditional

      public void saveAdditional(net.minecraft.nbt.CompoundTag nbt, net.minecraft.core.HolderLookup.Provider lookup)
      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(net.minecraft.core.HolderLookup.Provider lookup)
      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, net.minecraft.core.HolderLookup.Provider lookup)
      Specified by:
      onDataPacket in interface net.neoforged.neoforge.common.extensions.IBlockEntityExtension
    • 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()