public final class EntityUtils extends Object
| Constructor and Description |
|---|
EntityUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
toBedrockEffectId(com.github.steveice10.mc.protocol.data.game.entity.Effect effect)
Convert Java edition effect IDs to Bedrock edition
|
static EntityType |
toBedrockEntity(com.github.steveice10.mc.protocol.data.game.entity.type.EntityType type)
Converts a MobType to a Bedrock edition EntityType, returns null if the EntityType is not found
|
static void |
updateMountOffset(Entity passenger,
Entity mount,
GeyserSession session,
boolean rider,
boolean riding,
boolean moreThanOneEntity)
Adjust an entity's height if they have mounted/dismounted an entity.
|
public static int toBedrockEffectId(com.github.steveice10.mc.protocol.data.game.entity.Effect effect)
effect - Effect to convertpublic static EntityType toBedrockEntity(com.github.steveice10.mc.protocol.data.game.entity.type.EntityType type)
type - The MobType to convertpublic static void updateMountOffset(Entity passenger, Entity mount, GeyserSession session, boolean rider, boolean riding, boolean moreThanOneEntity)
Copyright © 2021 GeyserMC. All rights reserved.