Class AbstractMerchantEntity

Direct Known Subclasses:
VillagerEntity

public class AbstractMerchantEntity extends AgeableEntity
  • Constructor Details

    • AbstractMerchantEntity

      public AbstractMerchantEntity(long entityId, long geyserId, EntityType entityType, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, com.nukkitx.math.vector.Vector3f rotation)
  • Method Details

    • teleport

      public void teleport(GeyserSession session, com.nukkitx.math.vector.Vector3f position, float yaw, float pitch, boolean isOnGround)
      Description copied from class: Entity
      Teleports an entity to a new location. Used in JavaEntityTeleportTranslator.
      Overrides:
      teleport in class Entity
      Parameters:
      session - GeyserSession.
      position - The new position of the entity.
      yaw - The new yaw of the entity.
      pitch - The new pitch of the entity.
      isOnGround - Whether the entity is currently on the ground.