-
Notifications
You must be signed in to change notification settings - Fork 10
ExpandBlock
youyihj edited this page Nov 15, 2020
·
4 revisions
ExpandBlock adds some function that CoT forgets to support.
import mods.zenutils.cotx.Block;
- IBlockActivated onBlockActivated (default null)
- IEntityWalk onEntityWalk (default null)
- IEntityCollided onEntityCollidedWithBlock (default null)
- TileEntity tileEntity (default null)
ExpandBlock extends BlockRepresentation. That means all Methods and ZenProperties that are available for Blocks are also available for ExpandBlocks!
Called when the block is right-clicked by a player.
Package name: mods.zenutils.cotx.IBlockActivated
It is a function with the following parameters (in this order):
- IWorld world
- IBlockPos pos
- ICTBlockState state
- ICTPlayer player
- Hand hand
- Facing facing
- Position3f blockHit
The function needs to return a bool.
Package name: mods.zenutils.cotx.IEntityWalk
It is a function with the following parameters (in this order):
- IWorld world
- IBlockPos pos
- IEntity entity
Package name: mods.zenutils.cotx.IEntityCollided
It is a function with the following parameters (in this order):
- IWorld world
- IBlockPos pos
- ICTBlockState state
- IEntity entity
- 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