public static class ITickableComponent.RandomTickableComponent extends java.lang.Object implements IBlockComponent
MalisisBlock allows the block to tick randomly.| Modifier and Type | Method and Description |
|---|---|
void |
onComponentAdded(IComponentProvider provider)
Called when this
IComponent is added to the IComponentProvider. |
void |
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)
Updates this component and calls the
ITickableComponent callback. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbreakBlock, canPlaceBlockAt, canPlaceBlockOnSide, canProvidePower, damageDropped, getBoundingBox, getBoundingBoxes, getHasSubtypes, getItem, getItemDropped, getLightOpacity, getMapColor, getMetaFromState, getPackedLightmapCoords, getProperties, getProperty, getStateForPlacement, getStateFromMeta, getSubBlocks, getUnlocalizedName, isFullBlock, isFullCube, isOpaqueCube, onBlockActivated, onBlockAdded, onBlockPlacedBy, onNeighborBlockChange, quantityDropped, setDefaultState, shouldSideBeRenderedgetComponent, getDependencies, isClientComponentpublic void onComponentAdded(IComponentProvider provider)
IComponentIComponent is added to the IComponentProvider.onComponentAdded in interface IComponentprovider - the providerpublic void 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)
ITickableComponent callback.MalisisBlock.randomTick(World, BlockPos, IBlockState, Random).block - the blockworld - the worldpos - the posstate - the staterand - the rand