Class VillagerEntity
java.lang.Object
org.geysermc.geyser.entity.type.Entity
org.geysermc.geyser.entity.type.LivingEntity
org.geysermc.geyser.entity.type.living.MobEntity
org.geysermc.geyser.entity.type.living.CreatureEntity
org.geysermc.geyser.entity.type.living.AgeableEntity
org.geysermc.geyser.entity.type.living.merchant.AbstractMerchantEntity
org.geysermc.geyser.entity.type.living.merchant.VillagerEntity
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic it.unimi.dsi.fastutil.ints.Int2IntMapA map of Java profession IDs to Bedrock IDsstatic it.unimi.dsi.fastutil.ints.Int2IntMapA map of all Java region IDs (plains, savanna...) to BedrockFields inherited from class org.geysermc.geyser.entity.type.LivingEntity
boots, chestplate, hand, health, helmet, leggings, maxHealth, offHand -
Constructor Summary
ConstructorsConstructorDescriptionVillagerEntity(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 Summary
Modifier and TypeMethodDescriptionvoidmoveRelative(double relX, double relY, double relZ, float yaw, float pitch, float headYaw, boolean isOnGround)com.nukkitx.math.vector.Vector3isetBedPosition(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<Optional<com.github.steveice10.mc.protocol.data.game.entity.metadata.Position>,?> entityMetadata)voidsetVillagerData(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata<com.github.steveice10.mc.protocol.data.game.entity.metadata.VillagerData,?> entityMetadata)Methods inherited from class org.geysermc.geyser.entity.type.living.AgeableEntity
getAdultSize, getBabySize, isBaby, setBabyMethods inherited from class org.geysermc.geyser.entity.type.living.MobEntity
initializeMetadata, setLeashHolderBedrockId, setMobFlagsMethods inherited from class org.geysermc.geyser.entity.type.LivingEntity
calculateAttribute, createHealthAttribute, isShaking, setDimensions, setFreezing, setHealth, setLivingEntityFlags, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateOffHandMethods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, as, despawnEntity, getBedrockRotation, getFlag, getMaxAir, is, moveAbsolute, moveAbsolute, moveRelative, setAir, setAirSupply, setBoundingBoxHeight, setBoundingBoxWidth, setDisplayName, setDisplayNameVisible, setFlag, setFlags, setGravity, setInvisible, setPose, setRiderSeatPosition, spawnEntity, teleport, updateBedrockMetadata, updateHeadLookRotation, updateMountOffset, updatePassengerOffsets, updatePositionAndRotation, updateRotation
-
Field Details
-
VILLAGER_PROFESSIONS
public static final it.unimi.dsi.fastutil.ints.Int2IntMap VILLAGER_PROFESSIONSA map of Java profession IDs to Bedrock IDs -
VILLAGER_REGIONS
public static final it.unimi.dsi.fastutil.ints.Int2IntMap VILLAGER_REGIONSA map of all Java region IDs (plains, savanna...) to Bedrock
-
-
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.github.steveice10.mc.protocol.data.game.entity.metadata.Position>,?> entityMetadata)- Overrides:
setBedPositionin classLivingEntity
-
moveRelative
public void moveRelative(double relX, double relY, double relZ, float yaw, float pitch, float headYaw, boolean isOnGround)- Overrides:
moveRelativein classEntity
-