Class ProjectileEntity

java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.projectile.ProjectileEntity
All Implemented Interfaces:
CommandOutput, Nameable
Direct Known Subclasses:
ExplosiveProjectileEntity, FireworkRocketEntity, FishingBobberEntity, LlamaSpitEntity, PersistentProjectileEntity, ShulkerBulletEntity, ThrownEntity

public abstract class ProjectileEntity
extends Entity
  • Field Details

    • ownerUuid

      private UUID ownerUuid
    • ownerEntityId

      private int ownerEntityId
    • leftOwner

      private boolean leftOwner
  • Constructor Details

  • Method Details

    • setOwner

      public void setOwner​(@Nullable Entity entity)
    • getOwner

      @Nullable public Entity getOwner()
    • writeCustomDataToNbt

      protected void writeCustomDataToNbt​(NbtCompound nbt)
      Specified by:
      writeCustomDataToNbt in class Entity
    • readCustomDataFromNbt

      protected void readCustomDataFromNbt​(NbtCompound nbt)
      Specified by:
      readCustomDataFromNbt in class Entity
    • tick

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

      private boolean method_26961()
    • setVelocity

      public void setVelocity​(double x, double y, double z, float speed, float divergence)
    • setProperties

      public void setProperties​(Entity user, float pitch, float yaw, float roll, float modifierZ, float modifierXYZ)
    • onCollision

      protected void onCollision​(HitResult hitResult)
    • onEntityHit

      protected void onEntityHit​(EntityHitResult entityHitResult)
    • onBlockHit

      protected void onBlockHit​(BlockHitResult blockHitResult)
    • setVelocityClient

      @Environment(CLIENT) public void setVelocityClient​(double x, double y, double z)
      Overrides:
      setVelocityClient in class Entity
    • method_26958

      protected boolean method_26958​(Entity entity)
    • method_26962

      protected void method_26962()
    • updateRotation

      protected static float updateRotation​(float prevRot, float newRot)