Class VillagerEntity


public class VillagerEntity extends AbstractMerchantEntity
  • Field Details

    • VILLAGER_PROFESSIONS

      public static final it.unimi.dsi.fastutil.ints.Int2IntMap VILLAGER_PROFESSIONS
      A map of Java profession IDs to Bedrock IDs
    • VILLAGER_REGIONS

      public static final it.unimi.dsi.fastutil.ints.Int2IntMap VILLAGER_REGIONS
      A map of all Java region IDs (plains, savanna...) to Bedrock
  • Constructor Details

    • VillagerEntity

      public VillagerEntity(GeyserSession session, long 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.github.steveice10.mc.protocol.data.game.entity.metadata.Position>,​?> 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