Class GlowBlockState

All Implemented Interfaces:
org.bukkit.block.BlockState, org.bukkit.metadata.Metadatable
Direct Known Subclasses:
GlowBanner, GlowBed, GlowContainer, GlowCreatureSpawner, GlowFlowerPot, GlowJukebox, GlowSign, GlowSkull

public class GlowBlockState extends Object implements org.bukkit.block.BlockState
Represents a state a block could be in as well as any block entities.
  • Field Details

    • type

      protected org.bukkit.Material type
    • data

      protected org.bukkit.material.MaterialData data
    • blockData

      protected blockData
  • Constructor Details

    • GlowBlockState

      public GlowBlockState(GlowBlock block)
      Creates a BlockState object to track the given block's state.
      block - the block
  • Method Details

    • getChunk

      public GlowChunk getChunk()
      Specified by:
      getChunk in interface org.bukkit.block.BlockState
    • getBlock

      public GlowBlock getBlock()
      Specified by:
      getBlock in interface org.bukkit.block.BlockState
    • getLocation

      public org.bukkit.Location getLocation()
      Specified by:
      getLocation in interface org.bukkit.block.BlockState
    • getLocation

      public org.bukkit.Location getLocation(org.bukkit.Location loc)
      Specified by:
      getLocation in interface org.bukkit.block.BlockState
    • setType

      public final void setType(@NotNull @NotNull org.bukkit.Material type)
      Specified by:
      setType in interface org.bukkit.block.BlockState
    • getRawData

      public final byte getRawData()
      Specified by:
      getRawData in interface org.bukkit.block.BlockState
    • setRawData

      public final void setRawData(byte data)
      Specified by:
      setRawData in interface org.bukkit.block.BlockState
    • isPlaced

      public boolean isPlaced()
      Specified by:
      isPlaced in interface org.bukkit.block.BlockState
    • update

      public final boolean update()
      Specified by:
      update in interface org.bukkit.block.BlockState
    • update

      public final boolean update(boolean force)
      Specified by:
      update in interface org.bukkit.block.BlockState
    • update

      public boolean update(boolean force, boolean applyPhysics)
      Specified by:
      update in interface org.bukkit.block.BlockState
    • setMetadata

      public void setMetadata(String metadataKey, org.bukkit.metadata.MetadataValue newMetadataValue)
      Specified by:
      setMetadata in interface org.bukkit.metadata.Metadatable
    • getMetadata

      public List<org.bukkit.metadata.MetadataValue> getMetadata(String metadataKey)
      Specified by:
      getMetadata in interface org.bukkit.metadata.Metadatable
    • hasMetadata

      public boolean hasMetadata(String metadataKey)
      Specified by:
      hasMetadata in interface org.bukkit.metadata.Metadatable
    • removeMetadata

      public void removeMetadata(String metadataKey, org.bukkit.plugin.Plugin owningPlugin)
      Specified by:
      removeMetadata in interface org.bukkit.metadata.Metadatable
    • getWorld

      public GlowWorld getWorld()
      Specified by:
      getWorld in interface org.bukkit.block.BlockState
    • getX

      public int getX()
      Specified by:
      getX in interface org.bukkit.block.BlockState
    • getY

      public int getY()
      Specified by:
      getY in interface org.bukkit.block.BlockState
    • getZ

      public int getZ()
      Specified by:
      getZ in interface org.bukkit.block.BlockState
    • getLightLevel

      public byte getLightLevel()
      Specified by:
      getLightLevel in interface org.bukkit.block.BlockState
    • getType

      public org.bukkit.Material getType()
      Specified by:
      getType in interface org.bukkit.block.BlockState
    • getBlockData

      public getBlockData()
      Specified by:
      getBlockData in interface org.bukkit.block.BlockState
    • isFlowed

      public boolean isFlowed()
    • setBlockData

      public void setBlockData( blockData)
      Specified by:
      setBlockData in interface org.bukkit.block.BlockState
    • setFlowed

      public void setFlowed(boolean flowed)
    • equals

      public boolean equals(Object o)
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      hashCode in class Object
    • toString

      public String toString()
      toString in class Object
    • getData

      public org.bukkit.material.MaterialData getData()
      Specified by:
      getData in interface org.bukkit.block.BlockState
    • setData

      public void setData(org.bukkit.material.MaterialData data)
      Specified by:
      setData in interface org.bukkit.block.BlockState