Class VillagerEntity
java.lang.Object
org.geysermc.connector.entity.Entity
org.geysermc.connector.entity.LivingEntity
org.geysermc.connector.entity.living.InsentientEntity
org.geysermc.connector.entity.living.CreatureEntity
org.geysermc.connector.entity.living.AgeableEntity
org.geysermc.connector.entity.living.merchant.AbstractMerchantEntity
org.geysermc.connector.entity.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.connector.entity.LivingEntity
boots, chestplate, hand, health, helmet, leggings, maxHealth, offHand -
Constructor Summary
ConstructorsConstructorDescriptionVillagerEntity(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 Summary
Modifier and TypeMethodDescriptionvoidmoveRelative(GeyserSession session, double relX, double relY, double relZ, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround)voidupdateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata, GeyserSession session)Applies the Java metadata to the local Bedrock metadata copyMethods inherited from class org.geysermc.connector.entity.living.merchant.AbstractMerchantEntity
teleportMethods inherited from class org.geysermc.connector.entity.LivingEntity
calculateAttribute, createHealthAttribute, isShaking, setDimensions, setFreezing, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateOffHandMethods inherited from class org.geysermc.connector.entity.Entity
addAdditionalSpawnData, as, despawnEntity, getBedrockRotation, getMaxAir, is, moveAbsolute, moveAbsolute, moveRelative, setAir, setInvisible, spawnEntity, updateBedrockMetadata, updateHeadLookRotation, 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(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:EntityApplies the Java metadata to the local Bedrock metadata copy- Overrides:
updateBedrockMetadatain classAgeableEntity- Parameters:
entityMetadata- the Java entity metadatasession- GeyserSession
-
moveRelative
public void moveRelative(GeyserSession session, double relX, double relY, double relZ, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround)- Overrides:
moveRelativein classEntity
-