Class EntityVehicle

java.lang.Object
org.cloudburstmc.server.entity.BaseEntity
org.cloudburstmc.server.entity.vehicle.EntityVehicle
All Implemented Interfaces:
org.cloudburstmc.api.entity.Entity, org.cloudburstmc.api.entity.Interactable, org.cloudburstmc.api.entity.Rideable, org.cloudburstmc.api.entity.vehicle.Vehicle
Direct Known Subclasses:
EntityAbstractMinecart, EntityBoat, EntityCommandBlockMinecart

public abstract class EntityVehicle extends BaseEntity implements org.cloudburstmc.api.entity.vehicle.Vehicle, org.cloudburstmc.api.entity.Interactable
author: MagicDroidX Nukkit Project
  • Field Details

    • rollingDirection

      protected boolean rollingDirection
  • Constructor Details

    • EntityVehicle

      public EntityVehicle(org.cloudburstmc.api.entity.EntityType<?> type, org.cloudburstmc.api.level.Location location)
  • 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()
      Specified by:
      getInteractButtonText in interface org.cloudburstmc.api.entity.Interactable
    • canDoInteraction

      public boolean canDoInteraction()
      Specified by:
      canDoInteraction in interface org.cloudburstmc.api.entity.Interactable
    • onUpdate

      public boolean onUpdate(int currentTick)
      Specified by:
      onUpdate in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      onUpdate in class BaseEntity
    • performHurtAnimation

      protected boolean performHurtAnimation()
    • attack

      public boolean attack(org.cloudburstmc.api.event.entity.EntityDamageEvent source)
      Specified by:
      attack in interface org.cloudburstmc.api.entity.Entity
      Overrides:
      attack in class BaseEntity