-
Notifications
You must be signed in to change notification settings - Fork 11
ZenUtilsEntity
youyihj edited this page Sep 23, 2023
·
4 revisions
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);- GlobalFunctions
- ScriptReloading
- SuppressErrorPreprocessor
- HardFailPreprocessor
- OrderlyMap
- IData Deep Update
- Template String
- Nullish Operators
- Array and List Operations
- Native Method Access
- Mixin
- CrTI18n
- CrTUUID
- CrTItemHandler
- CrTLiquidHandler
- ILiquidTankProperties
- StringList
- HexHelper
- StaticString
- Catenation
- PersistedCatenation
- PlayerStat
- IStatFormatter
- GameRuleHelper
- ZenCommand
- ZenCommandTree
- ZenUtilsCommandSender
- IGetCommandUsage
- ICommandExecute
- IGetTabCompletion
- CommandUtils