Class EntityFallingSand

java.lang.Object
net.minecraft.src.Entity
net.minecraft.src.EntityFallingSand

public class EntityFallingSand extends Entity
  • Field Details

    • blockID

      public int blockID
    • metadata

      public int metadata
    • fallTime

      public int fallTime
      How long the block has been falling for.
    • shouldDropItem

      public boolean shouldDropItem
    • hurtsEntities

      protected boolean hurtsEntities
    • fallHurtMax

      protected int fallHurtMax
      Maximum amount of damage dealt to entities hit by falling block
    • fallHurtAmount

      protected float fallHurtAmount
      Actual damage dealt to entities hit by falling block
    • fallingBlockTileEntityData

      public NBTTagCompound fallingBlockTileEntityData
    • hasBlockBrokenOnLand

      protected boolean hasBlockBrokenOnLand
  • Constructor Details

    • EntityFallingSand

      public EntityFallingSand(World par1World)
    • EntityFallingSand

      public EntityFallingSand(World par1World, double par2, double par4, double par6, int par8)
    • EntityFallingSand

      public EntityFallingSand(World par1World, double par2, double par4, double par6, int par8, int par9)
  • Method Details

    • canTriggerWalking

      protected boolean canTriggerWalking()
      returns if this entity triggers Block.onEntityWalking on the blocks they walk on. used for spiders and wolves to prevent them from trampling crops
      Overrides:
      canTriggerWalking in class Entity
    • entityInit

      protected void entityInit()
      Specified by:
      entityInit in class Entity
    • canBeCollidedWith

      public boolean canBeCollidedWith()
      Returns true if other Entities should be prevented from moving through this Entity.
      Overrides:
      canBeCollidedWith in class Entity
    • writeEntityToNBT

      protected void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
      (abstract) Protected helper method to write subclass entity data to NBT.
      Specified by:
      writeEntityToNBT in class Entity
    • readEntityFromNBT

      protected void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
      (abstract) Protected helper method to read subclass entity data from NBT.
      Specified by:
      readEntityFromNBT in class Entity
    • getShadowSize

      public float getShadowSize()
      Overrides:
      getShadowSize in class Entity
    • getWorld

      public World getWorld()
    • canRenderOnFire

      public boolean canRenderOnFire()
      Return whether this entity should be rendered as on fire.
      Overrides:
      canRenderOnFire in class Entity
    • addEntityCrashInfo

      public void addEntityCrashInfo(CrashReportCategory par1CrashReportCategory)
      Overrides:
      addEntityCrashInfo in class Entity
    • onUpdate

      public void onUpdate()
      Description copied from class: Entity
      Called to update the entity's position/logic.
      Overrides:
      onUpdate in class Entity
    • fall

      protected void fall(float fFallDistance)
      Description copied from class: Entity
      Called when the mob is falling. Calculates and applies fall damage.
      Overrides:
      fall in class Entity
    • setIsAnvil

      public void setIsAnvil(boolean bIsAnvil)