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(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

    • updateBedrockMetadata

      public void updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata, GeyserSession session)
      Description copied from class: Entity
      Applies the Java metadata to the local Bedrock metadata copy
      Overrides:
      updateBedrockMetadata in class AgeableEntity
      Parameters:
      entityMetadata - the Java entity metadata
      session - GeyserSession
    • moveRelative

      public void moveRelative(GeyserSession session, double relX, double relY, double relZ, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround)
      Overrides:
      moveRelative in class Entity