Contents
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
FieldsFields inherited from class TickProcedure
BASE_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionBasicChanceBlockGrowthProcedure(int chanceMin, int chance, String to, boolean nextTicking) -
Method Summary
Modifier and TypeMethodDescriptiononTick(CommandBuffer<ChunkStore> commandBuffer, Ref<ChunkStore> sectionReference, int worldX, int worldY, int worldZ, int blockId) This method will be fired once per tick with the World X Y and Z attached to it.toString()
-
Field Details
-
CODEC
-
-
Constructor Details
-
BasicChanceBlockGrowthProcedure
public BasicChanceBlockGrowthProcedure() -
BasicChanceBlockGrowthProcedure
-
-
Method Details
-
onTick
@Nonnull public BlockTickStrategy onTick(@Nonnull CommandBuffer<ChunkStore> commandBuffer, @Nonnull Ref<ChunkStore> sectionReference, int worldX, int worldY, int worldZ, int blockId) Description copied from class:TickProcedureThis method will be fired once per tick with the World X Y and Z attached to it. Changes can be made to the block at the specified location, and the returned strategy indicates whether this block should continue to tick or not.- Specified by:
onTickin classTickProcedure- Parameters:
commandBuffer- The command buffer of the chunk store being tickedsectionReference- The chunk section entity that holds this blockworldX- The X that this tick call is forworldY- The Y that this tick call is forworldZ- The Z that this tick call is forblockId- The blockId of this block- Returns:
- the strategy that decides whether the block keeps ticking.
-
toString
-