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
- All Implemented Interfaces:
org.geysermc.geyser.api.entity.type.GeyserEntity,Leashable
-
Field Summary
Fields inherited from class org.geysermc.geyser.entity.type.LivingEntity
body, boots, chestplate, hand, health, helmet, leggings, maxHealth, offhandFields inherited from class org.geysermc.geyser.entity.type.Entity
definition, dirtyMetadata, entityId, flags, geyserId, headYaw, motion, nametag, onGround, passengers, pitch, position, propertyManager, session, silent, uuid, valid, vehicle, yaw -
Constructor Summary
ConstructorsConstructorDescriptionVillagerEntity(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 Summary
Modifier and TypeMethodDescriptionstatic intgetBedrockProfession(int javaProfession) static intgetBedrockRegion(int javaRegion) booleanUsed in the interactive tag managervoidmoveRelative(double relX, double relY, double relZ, float yaw, float pitch, float headYaw, boolean isOnGround) @Nullable org.cloudburstmc.math.vector.Vector3isetBedPosition(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<Optional<org.cloudburstmc.math.vector.Vector3i>, ?> entityMetadata) voidsetVillagerData(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.VillagerData, ?> entityMetadata) Methods inherited from class org.geysermc.geyser.entity.type.living.merchant.AbstractMerchantEntity
canBeLeashed, mobInteract, testMobInteractionMethods inherited from class org.geysermc.geyser.entity.type.living.AgeableEntity
getAdultSize, getBabySize, initializeMetadata, isBaby, setBabyMethods inherited from class org.geysermc.geyser.entity.type.living.MobEntity
interact, isEnemy, leashHolderBedrockId, setLeashHolderBedrockId, setMobFlags, testInteractionMethods inherited from class org.geysermc.geyser.entity.type.LivingEntity
calculateAttribute, checkInteractWithNameTag, createHealthAttribute, getBody, getBoots, getChestplate, getHand, getHelmet, getLeggings, getOffhand, hasShield, isAlive, isMaxFrozenState, isShaking, setBody, setBoots, setChestplate, setDimensions, setFreezing, setHand, setHealth, setHelmet, setLeggings, setLivingEntityFlags, setMaxFrozenState, setMaxHealth, setOffhand, setParticles, setScale, switchHands, updateArmor, updateAttribute, updateBedrockAttributes, updateMainHand, updateOffHand, useArmSwingAttackMethods inherited from class org.geysermc.geyser.entity.type.Entity
addAdditionalSpawnData, as, despawnEntity, getBedrockRotation, getBoundingBoxHeight, getBoundingBoxWidth, getDefinition, getDirtyMetadata, getEntityId, getFlag, getGeyserId, getHeadYaw, getMaxAir, getMotion, getNametag, getPassengers, getPitch, getPosition, getPropertyManager, getSession, getUuid, getVehicle, getYaw, interactAt, isOnGround, isSilent, isValid, javaId, moveAbsolute, moveAbsolute, moveRelative, playEntityEvent, playEntityEvent, setAir, setAirSupply, setBoundingBoxHeight, setBoundingBoxWidth, setClientSideSilent, setDefinition, setDisplayName, setDisplayNameVisible, setEntityId, setFlag, setFlags, setFlagsDirty, setGravity, setHeadYaw, setInvisible, setMotion, setOnGround, setPassengers, setPitch, setPose, setPosition, setRiderSeatPosition, setSilent, setUuid, setValid, setVehicle, setYaw, spawnEntity, teleport, updateBedrockEntityProperties, updateBedrockMetadata, updateHeadLookRotation, updateInteractiveTag, updateMountOffset, updatePassengerOffsets, updatePositionAndRotation, updateRotationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.geysermc.geyser.entity.type.Leashable
isNotLeashed
-
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(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.VillagerData, ?> entityMetadata) -
setBedPosition
public @Nullable org.cloudburstmc.math.vector.Vector3i setBedPosition(org.geysermc.mcprotocollib.protocol.data.game.entity.metadata.EntityMetadata<Optional<org.cloudburstmc.math.vector.Vector3i>, ?> 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
-
getBedrockProfession
public static int getBedrockProfession(int javaProfession) -
getBedrockRegion
public static int getBedrockRegion(int javaRegion) -
isCanTradeWith
public boolean isCanTradeWith()Used in the interactive tag manager
-