Class ProjectileEntity

All Implemented Interfaces:
ICommandSource, INameable, ICapabilityProvider, ICapabilitySerializable<CompoundNBT>, IForgeEntity, INBTSerializable<CompoundNBT>
Direct Known Subclasses:
AbstractArrowEntity, DamagingProjectileEntity, FireworkRocketEntity, FishingBobberEntity, LlamaSpitEntity, ShulkerBulletEntity, ThrowableEntity

public abstract class ProjectileEntity extends Entity
  • Field Details

    • ownerUUID

      private UUID ownerUUID
    • ownerNetworkId

      private int ownerNetworkId
    • leftOwner

      private boolean leftOwner
  • Constructor Details

  • Method Details

    • setOwner

      public void setOwner(@Nullable Entity p_212361_1_)
    • getOwner

      @Nullable public Entity getOwner()
    • addAdditionalSaveData

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

      protected void readAdditionalSaveData(CompoundNBT p_70037_1_)
      Specified by:
      readAdditionalSaveData in class Entity
    • tick

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

      private boolean checkLeftOwner()
    • shoot

      public void shoot(double p_70186_1_, double p_70186_3_, double p_70186_5_, float p_70186_7_, float p_70186_8_)
    • shootFromRotation

      public void shootFromRotation(Entity p_234612_1_, float p_234612_2_, float p_234612_3_, float p_234612_4_, float p_234612_5_, float p_234612_6_)
    • onHit

      protected void onHit(RayTraceResult p_70227_1_)
    • onHitEntity

      protected void onHitEntity(EntityRayTraceResult p_213868_1_)
    • onHitBlock

      protected void onHitBlock(BlockRayTraceResult p_230299_1_)
    • lerpMotion

      public void lerpMotion(double p_70016_1_, double p_70016_3_, double p_70016_5_)
      Overrides:
      lerpMotion in class Entity
    • canHitEntity

      protected boolean canHitEntity(Entity p_230298_1_)
    • updateRotation

      protected void updateRotation()
    • lerpRotation

      protected static float lerpRotation(float p_234614_0_, float p_234614_1_)