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

public class BasicChanceBlockGrowthProcedure extends TickProcedure
  • Field Details

  • Constructor Details

    • BasicChanceBlockGrowthProcedure

      public BasicChanceBlockGrowthProcedure()
    • BasicChanceBlockGrowthProcedure

      public BasicChanceBlockGrowthProcedure(int chanceMin, int chance, String to, boolean nextTicking)
  • 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: TickProcedure
      This 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:
      onTick in class TickProcedure
      Parameters:
      commandBuffer - The command buffer of the chunk store being ticked
      sectionReference - The chunk section entity that holds this block
      worldX - The X that this tick call is for
      worldY - The Y that this tick call is for
      worldZ - The Z that this tick call is for
      blockId - The blockId of this block
      Returns:
      the strategy that decides whether the block keeps ticking.
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class Object