Class AbstractMerchantEntity
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
- Direct Known Subclasses:
VillagerEntity
-
Field Summary
Fields inherited from class org.geysermc.connector.entity.LivingEntity
boots, chestplate, hand, health, helmet, leggings, maxHealth, offHand -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMerchantEntity(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 TypeMethodDescriptionvoidteleport(GeyserSession session, com.nukkitx.math.vector.Vector3f position, float yaw, float pitch, boolean isOnGround)Teleports an entity to a new location.Methods inherited from class org.geysermc.connector.entity.living.AgeableEntity
updateBedrockMetadataMethods 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, moveRelative, setAir, setDisplayName, setDisplayNameVisible, setInvisible, spawnEntity, updateBedrockMetadata, updateHeadLookRotation, updatePositionAndRotation, updateRotation
-
Constructor Details
-
AbstractMerchantEntity
public AbstractMerchantEntity(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
-
teleport
public void teleport(GeyserSession session, com.nukkitx.math.vector.Vector3f position, float yaw, float pitch, boolean isOnGround)Description copied from class:EntityTeleports an entity to a new location. Used in JavaEntityTeleportTranslator.
-