Package org.geysermc.geyser.util
Class EntityUtils
java.lang.Object
org.geysermc.geyser.util.EntityUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]
static int
toBedrockEffectId(com.github.steveice10.mc.protocol.data.game.entity.Effect effect)
Convert Java edition effect IDs to Bedrock editionstatic void
updateMountOffset(Entity passenger, Entity mount, boolean rider, boolean riding, boolean moreThanOneEntity)
Adjust an entity's height if they have mounted/dismounted an entity.
-
Method Details
-
getAllEffectIdentifiers
- Returns:
- a new String array of all known effect identifiers
-
toBedrockEffectId
public static int toBedrockEffectId(com.github.steveice10.mc.protocol.data.game.entity.Effect effect)Convert Java edition effect IDs to Bedrock edition- Parameters:
effect
- Effect to convert- Returns:
- The numeric ID for the Bedrock edition effect
-
updateMountOffset
public static void updateMountOffset(Entity passenger, Entity mount, boolean rider, boolean riding, boolean moreThanOneEntity)Adjust an entity's height if they have mounted/dismounted an entity.
-