Class PillagerEntity
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.monster.MonsterEntity
org.geysermc.connector.entity.living.monster.raid.RaidParticipantEntity
org.geysermc.connector.entity.living.monster.raid.AbstractIllagerEntity
org.geysermc.connector.entity.living.monster.raid.PillagerEntity
-
Field Summary
Fields inherited from class org.geysermc.connector.entity.LivingEntity
boots, chestplate, hand, health, helmet, leggings, maxHealth, offHand -
Constructor Summary
ConstructorsConstructorDescriptionPillagerEntity(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 TypeMethodDescriptionprotected voidcheckForCrossbow(GeyserSession session)Check for a crossbow in either the mainhand or offhand.voidupdateMainHand(GeyserSession session)voidupdateOffHand(GeyserSession session)Methods inherited from class org.geysermc.connector.entity.living.InsentientEntity
updateBedrockMetadataMethods inherited from class org.geysermc.connector.entity.LivingEntity
calculateAttribute, createHealthAttribute, isShaking, setDimensions, setFreezing, updateArmor, updateAttribute, updateBedrockAttributesMethods inherited from class org.geysermc.connector.entity.Entity
addAdditionalSpawnData, as, despawnEntity, getBedrockRotation, getMaxAir, is, moveAbsolute, moveAbsolute, moveRelative, moveRelative, setAir, setDisplayName, setInvisible, spawnEntity, teleport, updateBedrockMetadata, updateHeadLookRotation, updatePositionAndRotation, updateRotation
-
Constructor Details
-
PillagerEntity
public PillagerEntity(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
-
updateMainHand
- Overrides:
updateMainHandin classLivingEntity
-
updateOffHand
- Overrides:
updateOffHandin classLivingEntity
-
checkForCrossbow
Check for a crossbow in either the mainhand or offhand. If one exists, indicate that the pillager should be posing
-