Class EntityTNTPrimed

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

public class EntityTNTPrimed extends Entity
  • Field Details

    • fuse

      public int fuse
      How long the fuse is
  • Constructor Details

    • EntityTNTPrimed

      public EntityTNTPrimed(World par1World)
    • EntityTNTPrimed

      public EntityTNTPrimed(World par1World, double par2, double par4, double par6, EntityLivingBase par8EntityLivingBase)
    • EntityTNTPrimed

      public EntityTNTPrimed(World par1World, double par2, double par4, double par6)
  • Method Details

    • entityInit

      protected void entityInit()
      Specified by:
      entityInit in class Entity
    • 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
    • canBeCollidedWith

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

      public void onUpdate()
      Called to update the entity's position/logic.
      Overrides:
      onUpdate 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
    • getTntPlacedBy

      public EntityLivingBase getTntPlacedBy()
      returns null or the entityliving it was placed or ignited by