Class VehicleEntity

All Implemented Interfaces:
CommandSource, EntityAccess, Nameable, ScoreHolder, ICapabilityProvider, ICapabilityProviderImpl<Entity>, ICapabilitySerializable<CompoundTag>, IForgeEntity, INBTSerializable<CompoundTag>
Direct Known Subclasses:
AbstractMinecart, Boat

public abstract class VehicleEntity extends Entity
  • Field Details

  • Constructor Details

    • VehicleEntity

      public VehicleEntity(EntityType<?> p_310168_, Level p_309578_)
  • Method Details

    • hurt

      public boolean hurt(DamageSource p_310829_, float p_310313_)
      Overrides:
      hurt in class Entity
    • shouldSourceDestroy

      boolean shouldSourceDestroy(DamageSource p_309621_)
    • destroy

      public void destroy(Item p_313028_)
    • defineSynchedData

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

      public void setHurtTime(int p_312621_)
    • setHurtDir

      public void setHurtDir(int p_312074_)
    • setDamage

      public void setDamage(float p_313007_)
    • getDamage

      public float getDamage()
    • getHurtTime

      public int getHurtTime()
    • getHurtDir

      public int getHurtDir()
    • destroy

      protected void destroy(DamageSource p_312900_)
    • getDropItem

      abstract Item getDropItem()