public interface ITickableComponent
ITickableComponent.PeriodicTickableComponent and ITickableComponent.RandomTickableComponent.| Modifier and Type | Interface and Description |
|---|---|
static class |
ITickableComponent.PeriodicTickableComponent
PeriodicTickableComponent when added to
MalisisBlock allows the block to tick periodically. |
static class |
ITickableComponent.RandomTickableComponent
RandomTickableComponent when added to
MalisisBlock allows the block to tick randomly. |
| Modifier and Type | Method and Description |
|---|---|
int |
update(net.minecraft.block.Block block,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
java.util.Random rand)
Called when the block updates the component.
|
int update(net.minecraft.block.Block block,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.block.state.IBlockState state,
java.util.Random rand)
block - the blockworld - the worldpos - the posstate - the staterand - the randITickableComponent.RandomTickableComponent).