Class EntityFallingBlock

java.lang.Object
org.cloudburstmc.server.entity.BaseEntity
org.cloudburstmc.server.entity.misc.EntityFallingBlock
All Implemented Interfaces:
org.cloudburstmc.api.entity.Entity, org.cloudburstmc.api.entity.misc.FallingBlock

public class EntityFallingBlock extends BaseEntity implements org.cloudburstmc.api.entity.misc.FallingBlock
Author:
MagicDroidX
  • Constructor Details

    • EntityFallingBlock

      public EntityFallingBlock(org.cloudburstmc.api.entity.EntityType<org.cloudburstmc.api.entity.misc.FallingBlock> type, org.cloudburstmc.api.level.Location location)
  • Method Details

    • getWidth

      public float getWidth()
      Specified by:
      getWidth in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      getWidth in class BaseEntity
    • getLength

      public float getLength()
      Specified by:
      getLength in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      getLength in class BaseEntity
    • getHeight

      public float getHeight()
      Specified by:
      getHeight in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      getHeight in class BaseEntity
    • getGravity

      public float getGravity()
      Specified by:
      getGravity in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      getGravity in class BaseEntity
    • getDrag

      public float getDrag()
      Specified by:
      getDrag in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      getDrag in class BaseEntity
    • getBaseOffset

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

      public boolean canCollide()
      Specified by:
      canCollide in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      canCollide in class BaseEntity
    • loadAdditionalData

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

      public void saveAdditionalData(com.nukkitx.nbt.NbtMapBuilder tag)
      Overrides:
      saveAdditionalData in class BaseEntity
    • canCollideWith

      public boolean canCollideWith(org.cloudburstmc.api.entity.Entity entity)
      Specified by:
      canCollideWith in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      canCollideWith in class BaseEntity
    • attack

      public boolean attack(org.cloudburstmc.api.event.entity.EntityDamageEvent source)
      Specified by:
      attack in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      attack in class BaseEntity
    • onUpdate

      public boolean onUpdate(int currentTick)
      Specified by:
      onUpdate in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      onUpdate in class BaseEntity
    • getBlock

      public org.cloudburstmc.api.block.BlockState getBlock()
      Specified by:
      getBlock in interface org.cloudburstmc.api.entity.misc.FallingBlock
    • setBlock

      public void setBlock(org.cloudburstmc.api.block.BlockState blockState)
      Specified by:
      setBlock in interface org.cloudburstmc.api.entity.misc.FallingBlock
    • canBeMovedByCurrents

      public boolean canBeMovedByCurrents()
      Description copied from class: BaseEntity
      Returns whether this entity can be moved by currents in liquids.
      Specified by:
      canBeMovedByCurrents in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      canBeMovedByCurrents in class BaseEntity
      Returns:
      boolean