public class VillagerEntity extends AbstractMerchantEntity
| Modifier and Type | Field and Description |
|---|---|
static it.unimi.dsi.fastutil.ints.Int2IntMap |
VILLAGER_PROFESSIONS
A map of Java profession IDs to Bedrock IDs
|
static it.unimi.dsi.fastutil.ints.Int2IntMap |
VILLAGER_REGIONS
A map of all Java region IDs (plains, savanna...) to Bedrock
|
boots, chestplate, hand, health, helmet, leggings, maxHealth, offHand| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
void |
moveRelative(GeyserSession session,
double relX,
double relY,
double relZ,
com.nukkitx.math.vector.Vector3f rotation,
boolean isOnGround) |
void |
updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata,
GeyserSession session)
Applies the Java metadata to the local Bedrock metadata copy
|
teleportcalculateAttribute, createHealthAttribute, isShaking, setDimensions, setFreezing, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateOffHandaddAdditionalSpawnData, as, despawnEntity, getBedrockRotation, is, moveAbsolute, moveAbsolute, moveRelative, spawnEntity, updateBedrockMetadata, updateHeadLookRotation, updatePositionAndRotation, updateRotationpublic static final it.unimi.dsi.fastutil.ints.Int2IntMap VILLAGER_PROFESSIONS
public static final it.unimi.dsi.fastutil.ints.Int2IntMap VILLAGER_REGIONS
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)
public void updateBedrockMetadata(com.github.steveice10.mc.protocol.data.game.entity.metadata.EntityMetadata entityMetadata,
GeyserSession session)
EntityupdateBedrockMetadata in class AgeableEntityentityMetadata - the Java entity metadatasession - GeyserSessionpublic void moveRelative(GeyserSession session, double relX, double relY, double relZ, com.nukkitx.math.vector.Vector3f rotation, boolean isOnGround)
moveRelative in class EntityCopyright © 2021 GeyserMC. All rights reserved.