Utilities

DisplayEntityUtils has two primary utility classes, DisplayUtils and PacketUtils. This wiki page only includes some of this functions from these classes.

DisplayUtils

DisplayUtils is a utility class that allows for quickly manipulating display/interaction entities

Get translated location of a Display/Interaction Entity

//Get the location where the visible model of a display entity is, with rotation (transformation's left rot, entity pitch, and entity yaw) calculations
Location translatedDisplayLocation = DisplayUtils.getModelLocation(displayEntity)

//Get the location where the visible model of a display entity is, without rotation calculations
Location fixedTranslatedDisplayLocation = DisplayUtils.getFixedModelLocation(displayEntity);

//These do the same as above but for ActiveParts
Location translatedDisplayLocation = DisplayUtils.getModelLocation(activePart)
Location fixedTranslatedDisplayLocation = DisplayUtils.getFixedModelLocation(activePart);

//Get the translation vector of a non-display entity relative to its group
//This will return null if the entity is not in a group
Vector translationVector = DisplayUtils.getNonDisplayranslation(nonDisplayEntity);

Pivot an Non-Display Entity around a location

Check Entity Part/Group tags


PacketUtils

PacketUtils is a utility class, allowing for manipulating display/interaction entity data through packets

Make an entity glow, only for the given player

Teleport a part only for the given player

Scale an Interaction entity over time for a given player

Translate an Interaction entity over time for a given player

Last updated