public class StriderEntity extends AnimalEntity
boots, chestplate, hand, helmet, leggings, offHandattributes, entityId, entityType, geyserId, metadata, motion, onGround, passengers, position, rotation, valid| Constructor and Description |
|---|
StriderEntity(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 |
|---|---|
boolean |
canEat(GeyserSession session,
String javaIdentifierStripped,
ItemEntry itemEntry) |
protected boolean |
isShaking(GeyserSession session)
If true, the entity should be shaking on the client's end.
|
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
|
void |
updateBedrockMetadata(GeyserSession session)
Sends the Bedrock metadata to the client
|
getDefaultMaxHealth, setDimensions, setFreezing, updateAllEquipment, updateArmor, updateBedrockAttributes, updateMainHand, updateOffHandas, despawnEntity, getBedrockRotation, is, moveAbsolute, moveAbsolute, moveRelative, moveRelative, spawnEntity, teleport, updateHeadLookRotation, updatePositionAndRotation, updateRotationpublic StriderEntity(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 updateBedrockMetadata(GeyserSession session)
EntityupdateBedrockMetadata in class Entitysession - GeyserSessionprotected boolean isShaking(GeyserSession session)
EntityisShaking in class LivingEntityEntityFlag.SHAKING should be set to true.public boolean canEat(GeyserSession session, String javaIdentifierStripped, ItemEntry itemEntry)
canEat in class AnimalEntityjavaIdentifierStripped - the stripped Java identifier of the item that is potential breeding food. For example,
wheat.Copyright © 2021 GeyserMC. All rights reserved.