ZenUtilsEntity - friendlyhj/ZenUtils GitHub Wiki
ZenUtilsEntity is an expansion of IEntity (crafttweaker.entity.IEntity
).
As this is a ZenExpansion, you can simply call the methods on any IEntity object, or any of it's subtypes.
// Set entities' motion
// entityObj.setMotionVector(IVector3d vector);
// They all return nothing.
entityObj.setMotionX(0.5);
entityObj.setMotionVector(crafttweaker.world.IVector3d.create(0.5D, 1.0D, 0.5D));
// Get entities' unique ID
// Will return CrTUUID object.
entityObj.getUUIDObject();
// Updates entities' nbt
// Differ from CraftTweaker setNBT, which only modifies entities' ForgeData
entityObj.updateNBT(IData data);