Class TumblestoneBlockEvent.PostGrow
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.blocks.TumblestoneBlockEvent
com.pixelmonmod.pixelmon.api.events.blocks.TumblestoneBlockEvent.PostGrow
- Enclosing class:
- TumblestoneBlockEvent
Fired in the random tick before the tumblestone attempts to increase in age (grow)
 Cancelling will prevent it from attempting to grow
- 
Nested Class SummaryNested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.blocks.TumblestoneBlockEventTumblestoneBlockEvent.PostBlockBroke, TumblestoneBlockEvent.PostBlockDestroy, TumblestoneBlockEvent.PostCooldownEnd, TumblestoneBlockEvent.PostGrow, TumblestoneBlockEvent.PreBlockBroke, TumblestoneBlockEvent.PreBlockDestroy, TumblestoneBlockEvent.PreCooldownEnd, TumblestoneBlockEvent.PreGrowNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Constructor SummaryConstructorsConstructorDescriptionPostGrow(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, float chance) Basic constructor
- 
Method SummaryModifier and TypeMethodDescriptionfloatThe change of the growth happening this random tickbooleanChecks if the block grew to full valueMethods inherited from class com.pixelmonmod.pixelmon.api.events.blocks.TumblestoneBlockEventgetPos, getState, getWorldMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Constructor Details- 
PostGrowpublic PostGrow(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, float chance) Basic constructor- Parameters:
- state- The block state
- pos- The position of the tumblestone
- chance- The chance of growth
 
 
- 
- 
Method Details- 
getChancepublic float getChance()The change of the growth happening this random tick- Returns:
- The chance
 
- 
isFullyGrownpublic boolean isFullyGrown()Checks if the block grew to full value- Returns:
- The fully grown status
 
 
-