-
Notifications
You must be signed in to change notification settings - Fork 10
ZenUtilsCommandSender
youyihj edited this page Aug 16, 2020
·
1 revision
ZenUtilsCommandSender is ZenUtils' speacial ICommandSender object. That means all of ICommandSender's methods are also available on this object!
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.
import mods.zenutils.command.ZenUtilsCommandSender;
Never instanceof or cast to ICommandSender's subclass! It will always return false or throw ClassCastException!
If you want to tranform it to player, you should call CommandUtils::getCommandSenderAsPlayer
.
- GlobalFunctions
- ScriptReloading
- SuppressErrorPreprocessor
- HardFailPreprocessor
- OrderlyMap
- IData Deep Update
- Template String
- Native Method Access
- Mixin
- CrTI18n
- CrTUUID
- CrTItemHandler
- CrTLiquidHandler
- ILiquidTankProperties
- StringList
- HexHelper
- StaticString
- Catenation
- PersistedCatenation
- PlayerStat
- IStatFormatter
- GameRuleHelper
- ZenCommand
- ZenCommandTree
- ZenUtilsCommandSender
- IGetCommandUsage
- ICommandExecute
- IGetTabCompletion
- CommandUtils