Class VillagerEntity


public class VillagerEntity extends AbstractMerchantEntity
  • Constructor Details

    • VillagerEntity

      public VillagerEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, com.nukkitx.math.vector.Vector3f position, com.nukkitx.math.vector.Vector3f motion, float yaw, float pitch, float headYaw)
  • Method Details

    • setVillagerData

      public void setVillagerData(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<com.github.steveice10.mc.protocol.data.game.entity.metadata.VillagerData,​?> entityMetadata)
    • setBedPosition

      public com.nukkitx.math.vector.Vector3i setBedPosition(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<Optional<com.nukkitx.math.vector.Vector3i>,​?> entityMetadata)
      Overrides:
      setBedPosition in class LivingEntity
    • moveRelative

      public void moveRelative(double relX, double relY, double relZ, float yaw, float pitch, float headYaw, boolean isOnGround)
      Overrides:
      moveRelative in class Entity
    • getBedrockProfession

      public static int getBedrockProfession(int javaProfession)
    • getBedrockRegion

      public static int getBedrockRegion(int javaRegion)