Class EntityFallingBlock

All Implemented Interfaces:
Metadatable, Cloneable

public class EntityFallingBlock extends Entity
Author:
MagicDroidX
  • Field Details

    • NETWORK_ID

      public static final int NETWORK_ID
      See Also:
    • blockId

      protected int blockId
    • damage

      protected int damage
    • breakOnLava

      @PowerNukkitOnly protected boolean breakOnLava
    • breakOnGround

      @PowerNukkitOnly protected boolean breakOnGround
  • Constructor Details

  • Method Details

    • getWidth

      public float getWidth()
      Overrides:
      getWidth in class Entity
    • getLength

      public float getLength()
      Overrides:
      getLength in class Entity
    • getHeight

      public float getHeight()
      Overrides:
      getHeight in class Entity
    • getGravity

      protected float getGravity()
      Overrides:
      getGravity in class Entity
    • getDrag

      protected float getDrag()
      Overrides:
      getDrag in class Entity
    • getBaseOffset

      protected float getBaseOffset()
      Overrides:
      getBaseOffset in class Entity
    • canCollide

      public boolean canCollide()
      Overrides:
      canCollide in class Entity
    • initEntity

      protected void initEntity()
      Overrides:
      initEntity in class Entity
    • canCollideWith

      public boolean canCollideWith(Entity entity)
      Overrides:
      canCollideWith in class Entity
    • attack

      public boolean attack(EntityDamageEvent source)
      Overrides:
      attack in class Entity
    • onUpdate

      public boolean onUpdate(int currentTick)
      Overrides:
      onUpdate in class Entity
    • getBlock

      public int getBlock()
    • getDamage

      public int getDamage()
    • getNetworkId

      public int getNetworkId()
      Specified by:
      getNetworkId in class Entity
    • saveNBT

      public void saveNBT()
      Overrides:
      saveNBT in class Entity
    • canBeMovedByCurrents

      public boolean canBeMovedByCurrents()
      Description copied from class: Entity
      Returns whether this entity can be moved by currents in liquids.
      Overrides:
      canBeMovedByCurrents in class Entity
      Returns:
      boolean
    • resetFallDistance

      public void resetFallDistance()
      Overrides:
      resetFallDistance in class Entity
    • getOriginalName

      @PowerNukkitOnly @Since("1.5.1.0-PN") public String getOriginalName()
      Description copied from class: Entity
      The name that English name of the type of this entity.
      Overrides:
      getOriginalName in class Entity