类 Projectile

所有已实现的接口:
CommandSource, TraceableEntity, EntityAccess, Nameable, ICapabilityProvider, ICapabilityProviderImpl<Entity>, ICapabilitySerializable<CompoundTag>, IForgeEntity, INBTSerializable<CompoundTag>
直接已知子类:
AbstractArrow, AbstractHurtingProjectile, FireworkRocketEntity, FishingHook, LlamaSpit, ShulkerBullet, ThrowableProjectile

public abstract class Projectile extends Entity implements TraceableEntity
  • 字段详细资料

    • ownerUUID

      @Nullable private UUID ownerUUID
    • cachedOwner

      @Nullable private Entity cachedOwner
    • leftOwner

      private boolean leftOwner
    • hasBeenShot

      private boolean hasBeenShot
  • 构造器详细资料

  • 方法详细资料

    • setOwner

      public void setOwner(@Nullable Entity pOwner)
    • getOwner

      @Nullable public Entity getOwner()
      指定者:
      getOwner 在接口中 TraceableEntity
    • getEffectSource

      public Entity getEffectSource()
    • addAdditionalSaveData

      protected void addAdditionalSaveData(CompoundTag pCompound)
      指定者:
      addAdditionalSaveData 在类中 Entity
    • ownedBy

      protected boolean ownedBy(Entity pEntity)
    • readAdditionalSaveData

      protected void readAdditionalSaveData(CompoundTag pCompound)
      指定者:
      readAdditionalSaveData 在类中 Entity
    • tick

      public void tick()
      覆盖:
      tick 在类中 Entity
    • checkLeftOwner

      private boolean checkLeftOwner()
    • shoot

      public void shoot(double pX, double pY, double pZ, float pVelocity, float pInaccuracy)
    • shootFromRotation

      public void shootFromRotation(Entity pShooter, float pX, float pY, float pZ, float pVelocity, float pInaccuracy)
    • onHit

      protected void onHit(HitResult pResult)
    • onHitEntity

      protected void onHitEntity(EntityHitResult pResult)
    • onHitBlock

      protected void onHitBlock(BlockHitResult pResult)
    • lerpMotion

      public void lerpMotion(double pX, double pY, double pZ)
      覆盖:
      lerpMotion 在类中 Entity
    • canHitEntity

      protected boolean canHitEntity(Entity pTarget)
    • updateRotation

      protected void updateRotation()
    • lerpRotation

      protected static float lerpRotation(float pCurrentRotation, float pTargetRotation)
    • getAddEntityPacket

      public Packet<ClientGamePacketListener> getAddEntityPacket()
      覆盖:
      getAddEntityPacket 在类中 Entity
    • recreateFromPacket

      public void recreateFromPacket(ClientboundAddEntityPacket pPacket)
      覆盖:
      recreateFromPacket 在类中 Entity
    • mayInteract

      public boolean mayInteract(Level pLevel, BlockPos pPos)
      覆盖:
      mayInteract 在类中 Entity