Package btw.entity

Class SoulSandEntity

java.lang.Object
net.minecraft.src.Entity
btw.entity.SoulSandEntity
All Implemented Interfaces:
EntityWithCustomPacket
Direct Known Subclasses:
LocatorPileEntity

public class SoulSandEntity extends Entity implements EntityWithCustomPacket
  • Field Details

    • targetX

      protected double targetX
    • targetY

      protected double targetY
    • targetZ

      protected double targetZ
    • despawnTimer

      protected int despawnTimer
    • type

      protected byte type
    • maxDespawnTimer

      protected int maxDespawnTimer
  • Constructor Details

    • SoulSandEntity

      public SoulSandEntity(World world)
    • SoulSandEntity

      public SoulSandEntity(World world, double x, double y, double z)
  • Method Details

    • entityInit

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

      public void setVelocity(double par1, double par3, double par5)
      Description copied from class: Entity
      Sets the velocity to the args. Args: x, y, z
      Overrides:
      setVelocity in class Entity
    • onUpdate

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

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

      public void readEntityFromNBT(NBTTagCompound tag)
      (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
    • getBrightness

      public float getBrightness(float par1)
      Gets how bright this entity is.
      Overrides:
      getBrightness in class Entity
    • getBrightnessForRender

      public int getBrightnessForRender(float par1)
      Overrides:
      getBrightnessForRender in class Entity
    • canAttackWithItem

      public boolean canAttackWithItem()
      If returns false, the item will not inflict any damage against entities.
      Overrides:
      canAttackWithItem in class Entity
    • getTrackerViewDistance

      public int getTrackerViewDistance()
      Specified by:
      getTrackerViewDistance in interface EntityWithCustomPacket
    • getTrackerUpdateFrequency

      public int getTrackerUpdateFrequency()
      Specified by:
      getTrackerUpdateFrequency in interface EntityWithCustomPacket
    • getTrackMotion

      public boolean getTrackMotion()
      Specified by:
      getTrackMotion in interface EntityWithCustomPacket
    • shouldServerTreatAsOversized

      public boolean shouldServerTreatAsOversized()
      Description copied from interface: EntityWithCustomPacket
      Partially disables server-side visibility tests for interacting with an entity
      Specified by:
      shouldServerTreatAsOversized in interface EntityWithCustomPacket
    • getSpawnPacketForThisEntity

      public Packet getSpawnPacketForThisEntity()
      Specified by:
      getSpawnPacketForThisEntity in interface EntityWithCustomPacket
      Returns:
      Custom packet containing information for this entity to send from the server to the client
    • moveTowards

      public void moveTowards(double x, double z)
    • clientUpdateParticles

      @Environment(CLIENT) protected void clientUpdateParticles()