Class GlowFallingBlock

java.lang.Object
net.glowstone.entity.GlowEntity
net.glowstone.entity.objects.GlowFallingBlock
All Implemented Interfaces:
net.kyori.adventure.audience.Audience, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, org.bukkit.command.CommandSender, org.bukkit.entity.Entity, org.bukkit.entity.FallingBlock, org.bukkit.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.permissions.Permissible, org.bukkit.permissions.ServerOperator, org.bukkit.persistence.PersistentDataHolder

public class GlowFallingBlock extends GlowEntity implements org.bukkit.entity.FallingBlock
  • Constructor Details

    • GlowFallingBlock

      public GlowFallingBlock(org.bukkit.Location location, org.bukkit.block.data.BlockData data)
    • GlowFallingBlock

      public GlowFallingBlock(org.bukkit.Location location, org.bukkit.block.data.BlockData blockData, BlockEntity blockEntity)
      Creates an instance for the given entity.
      Parameters:
      location - the falling block's location
      blockData - the falling block's BlockData
      blockEntity - the entity
  • Method Details

    • canHurtEntities

      public boolean canHurtEntities()
      Specified by:
      canHurtEntities in interface org.bukkit.entity.FallingBlock
    • setHurtEntities

      public void setHurtEntities(boolean canHurtEntities)
      Specified by:
      setHurtEntities in interface org.bukkit.entity.FallingBlock
    • getMaterial

      public org.bukkit.Material getMaterial()
      Specified by:
      getMaterial in interface org.bukkit.entity.FallingBlock
    • getDropItem

      public boolean getDropItem()
      Specified by:
      getDropItem in interface org.bukkit.entity.FallingBlock
    • createSpawnMessage

      public List<com.flowpowered.network.Message> createSpawnMessage()
      Description copied from class: GlowEntity
      Creates a list of Messages which can be sent to a client to spawn this entity. Implementations in concrete subclasses may return a shallowly immutable list.
      Specified by:
      createSpawnMessage in class GlowEntity
      Returns:
      A list of messages which can spawn this entity.
    • pulsePhysics

      protected void pulsePhysics()
      Overrides:
      pulsePhysics in class GlowEntity
    • getType

      public org.bukkit.entity.EntityType getType()
      Specified by:
      getType in interface org.bukkit.entity.Entity
      Overrides:
      getType in class GlowEntity
    • getBlockData

      public org.bukkit.block.data.BlockData getBlockData()
      Specified by:
      getBlockData in interface org.bukkit.entity.FallingBlock
    • setBlockData

      public void setBlockData(org.bukkit.block.data.BlockData blockData)
    • setDropItem

      public void setDropItem(boolean dropItem)
      Specified by:
      setDropItem in interface org.bukkit.entity.FallingBlock
    • getBlockEntityCompoundTag

      public CompoundTag getBlockEntityCompoundTag()
    • setBlockEntityCompoundTag

      public void setBlockEntityCompoundTag(CompoundTag blockEntityCompoundTag)