Class EntityLightningBolt


public class EntityLightningBolt extends EntityWeatherEffect
  • Field Details

    • renderSeed

      public long renderSeed
  • Constructor Details

    • EntityLightningBolt

      public EntityLightningBolt(World world, double dPosX, double dPosY, double dPosZ)
  • Method Details

    • onUpdate

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

      protected void entityInit()
      Specified by:
      entityInit 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
    • writeEntityToNBT

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

      @Environment(CLIENT) public boolean isInRangeToRenderVec3D(Vec3 par1Vec3)
      Checks using a Vec3d to determine if this entity is within range of that vector to be rendered. Args: vec3D
      Overrides:
      isInRangeToRenderVec3D in class Entity