Class EntityVehicle

All Implemented Interfaces:
EntityInteractable, EntityRideable, Metadatable, Cloneable
Direct Known Subclasses:
EntityBoat, EntityMinecartAbstract

public abstract class EntityVehicle extends Entity implements EntityRideable, EntityInteractable
Author:
MagicDroidX (Nukkit Project)
  • Field Details

    • rollingDirection

      protected boolean rollingDirection
  • Constructor Details

  • Method Details

    • getRollingAmplitude

      public int getRollingAmplitude()
    • setRollingAmplitude

      public void setRollingAmplitude(int time)
    • getRollingDirection

      public int getRollingDirection()
    • setRollingDirection

      public void setRollingDirection(int direction)
    • getDamage

      public int getDamage()
    • setDamage

      public void setDamage(int damage)
    • getInteractButtonText

      public String getInteractButtonText(Player player)
      Specified by:
      getInteractButtonText in interface EntityInteractable
    • canDoInteraction

      public boolean canDoInteraction()
      Specified by:
      canDoInteraction in interface EntityInteractable
    • onUpdate

      public boolean onUpdate(int currentTick)
      Overrides:
      onUpdate in class Entity
    • performHurtAnimation

      protected boolean performHurtAnimation()
    • attack

      public boolean attack(EntityDamageEvent source)
      Overrides:
      attack in class Entity