Class VillagerEntity

All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity

public class VillagerEntity extends AbstractMerchantEntity
  • Constructor Details

    • VillagerEntity

      public VillagerEntity(GeyserSession session, int entityId, long geyserId, UUID uuid, EntityDefinition<?> definition, org.cloudburstmc.math.vector.Vector3f position, org.cloudburstmc.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 @Nullable org.cloudburstmc.math.vector.Vector3i setBedPosition(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<Optional<org.cloudburstmc.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)
    • isCanTradeWith

      public boolean isCanTradeWith()
      Used in the interactive tag manager