ExpandBlock - friendlyhj/ZenUtils GitHub Wiki
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