Class ExperienceOrbEntity

All Implemented Interfaces:
ICommandSource, INameable, ICapabilityProvider, ICapabilitySerializable<CompoundNBT>, IForgeEntity, INBTSerializable<CompoundNBT>

public class ExperienceOrbEntity extends Entity
  • Field Details

    • tickCount

      public int tickCount
    • age

      public int age
    • throwTime

      public int throwTime
    • health

      private int health
    • value

      public int value
    • followingPlayer

      private PlayerEntity followingPlayer
    • followingTime

      private int followingTime
  • Constructor Details

    • ExperienceOrbEntity

      public ExperienceOrbEntity(World p_i1585_1_, double p_i1585_2_, double p_i1585_4_, double p_i1585_6_, int p_i1585_8_)
    • ExperienceOrbEntity

      public ExperienceOrbEntity(EntityType<? extends ExperienceOrbEntity> p_i50382_1_, World p_i50382_2_)
  • Method Details

    • isMovementNoisy

      protected boolean isMovementNoisy()
      Overrides:
      isMovementNoisy in class Entity
    • defineSynchedData

      protected void defineSynchedData()
      Specified by:
      defineSynchedData in class Entity
    • tick

      public void tick()
      Overrides:
      tick in class Entity
    • setUnderwaterMovement

      private void setUnderwaterMovement()
    • doWaterSplashEffect

      protected void doWaterSplashEffect()
      Overrides:
      doWaterSplashEffect in class Entity
    • hurt

      public boolean hurt(DamageSource p_70097_1_, float p_70097_2_)
      Overrides:
      hurt in class Entity
    • addAdditionalSaveData

      public void addAdditionalSaveData(CompoundNBT p_213281_1_)
      Specified by:
      addAdditionalSaveData in class Entity
    • readAdditionalSaveData

      public void readAdditionalSaveData(CompoundNBT p_70037_1_)
      Specified by:
      readAdditionalSaveData in class Entity
    • playerTouch

      public void playerTouch(PlayerEntity p_70100_1_)
      Overrides:
      playerTouch in class Entity
    • durabilityToXp

      private int durabilityToXp(int p_184515_1_)
    • xpToDurability

      private int xpToDurability(int p_184514_1_)
    • getValue

      public int getValue()
    • getIcon

      public int getIcon()
    • getExperienceValue

      public static int getExperienceValue(int p_70527_0_)
    • isAttackable

      public boolean isAttackable()
      Overrides:
      isAttackable in class Entity
    • getAddEntityPacket

      public IPacket<?> getAddEntityPacket()
      Specified by:
      getAddEntityPacket in class Entity