Class BlockTickPlugin

All Implemented Interfaces:
IBlockTickProvider, CommandOwner

public class BlockTickPlugin extends JavaPlugin implements IBlockTickProvider
  • Constructor Details

    • BlockTickPlugin

      public BlockTickPlugin(@Nonnull JavaPluginInit init)
  • Method Details

    • get

      public static BlockTickPlugin get()
    • getTickProcedure

      public TickProcedure getTickProcedure(int blockId)
      Specified by:
      getTickProcedure in interface IBlockTickProvider
    • discoverTickingBlocks

      public int discoverTickingBlocks(@Nonnull Holder<ChunkStore> sectionHolder)
      Discovers all blocks in a chunk section which have an associated procedure in the BlockTickPlugin and sets them to ticking.
      Parameters:
      sectionHolder - The Holder of the ChunkStore containing the chunk section.
      Returns:
      the number of discovered ticking blocks.