Class BasicChanceBlockGrowthProcedure
java.lang.Object
com.hypixel.hytale.server.core.asset.type.blocktick.config.TickProcedure
com.hypixel.hytale.builtin.blocktick.procedure.BasicChanceBlockGrowthProcedure
- Direct Known Subclasses:
SplitChanceBlockGrowthProcedure
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intstatic final BuilderCodec<BasicChanceBlockGrowthProcedure> protected booleanprotected StringFields inherited from class com.hypixel.hytale.server.core.asset.type.blocktick.config.TickProcedure
BASE_CODEC, BASE_RANDOM, RANDOM -
Constructor Summary
ConstructorsConstructorDescriptionBasicChanceBlockGrowthProcedure(int chanceMin, int chance, String to, boolean nextTicking) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanexecuteToBlock(World world, int worldX, int worldY, int worldZ, String to) onTick(World world, WorldChunk wc, int worldX, int worldY, int worldZ, int blockId) protected booleantoString()Methods inherited from class com.hypixel.hytale.server.core.asset.type.blocktick.config.TickProcedure
getRandom
-
Field Details
-
CODEC
-
chanceMin
protected int chanceMin -
chance
protected int chance -
to
-
nextTicking
protected boolean nextTicking
-
-
Constructor Details
-
BasicChanceBlockGrowthProcedure
public BasicChanceBlockGrowthProcedure() -
BasicChanceBlockGrowthProcedure
-
-
Method Details
-
onTick
@Nonnull public BlockTickStrategy onTick(@Nonnull World world, WorldChunk wc, int worldX, int worldY, int worldZ, int blockId) - Specified by:
onTickin classTickProcedure
-
runChance
protected boolean runChance() -
executeToBlock
-
toString
-