Class SignBlockEntity

java.lang.Object
org.cloudburstmc.server.blockentity.BaseBlockEntity
org.cloudburstmc.server.blockentity.SignBlockEntity
All Implemented Interfaces:
org.cloudburstmc.api.blockentity.BlockEntity, org.cloudburstmc.api.blockentity.Sign

public class SignBlockEntity extends BaseBlockEntity implements org.cloudburstmc.api.blockentity.Sign
author: MagicDroidX Nukkit Project
  • Constructor Details

    • SignBlockEntity

      public SignBlockEntity(org.cloudburstmc.api.blockentity.BlockEntityType<?> type, org.cloudburstmc.api.level.chunk.Chunk chunk, com.nukkitx.math.vector.Vector3i position)
  • Method Details

    • loadAdditionalData

      public void loadAdditionalData(com.nukkitx.nbt.NbtMap tag)
      Overrides:
      loadAdditionalData in class BaseBlockEntity
    • saveClientData

      public void saveClientData(com.nukkitx.nbt.NbtMapBuilder tag)
      Description copied from class: BaseBlockEntity
      NBT data that is specifically sent to the client
      Overrides:
      saveClientData in class BaseBlockEntity
      Parameters:
      tag - tag to write data to
    • isValid

      public boolean isValid()
      Specified by:
      isValid in interface org.cloudburstmc.api.blockentity.BlockEntity
      Specified by:
      isValid in class BaseBlockEntity
    • setText

      public void setText(String... lines)
      Specified by:
      setText in interface org.cloudburstmc.api.blockentity.Sign
    • getText

      public String[] getText()
      Specified by:
      getText in interface org.cloudburstmc.api.blockentity.Sign
    • getTextOwner

      public String getTextOwner()
      Specified by:
      getTextOwner in interface org.cloudburstmc.api.blockentity.Sign
    • setTextOwner

      public void setTextOwner(String textOwner)
      Specified by:
      setTextOwner in interface org.cloudburstmc.api.blockentity.Sign
    • updateNbtMap

      public boolean updateNbtMap(com.nukkitx.nbt.NbtMap tag, CloudPlayer player)
      Description copied from class: BaseBlockEntity
      Called when a player updates a block entity's NBT data for example when writing on a sign.
      Overrides:
      updateNbtMap in class BaseBlockEntity
      Parameters:
      tag - tag
      player - player
      Returns:
      bool indication of success, will respawn the tile to the player if false.
    • isSpawnable

      public boolean isSpawnable()
      Specified by:
      isSpawnable in interface org.cloudburstmc.api.blockentity.BlockEntity
      Overrides:
      isSpawnable in class BaseBlockEntity