Class BlockModule.BlockStateInfoNeedRebuild

java.lang.Object
com.hypixel.hytale.server.core.modules.block.BlockModule.BlockStateInfoNeedRebuild
All Implemented Interfaces:
Resource<ChunkStore>, Cloneable
Enclosing class:
BlockModule

public static class BlockModule.BlockStateInfoNeedRebuild extends Object implements Resource<ChunkStore>
A resource that tracks whether block state information needs to be rebuilt.
  • Constructor Details

    • BlockStateInfoNeedRebuild

      public BlockStateInfoNeedRebuild()
      Empty Constructor of a BlockModule.BlockStateInfoNeedRebuild instance.
    • BlockStateInfoNeedRebuild

      public BlockStateInfoNeedRebuild(boolean needRebuild)
      Default Constructor of a BlockModule.BlockStateInfoNeedRebuild instance.
      Parameters:
      needRebuild - Whether the block state information needs to be rebuilt.
  • Method Details

    • getResourceType

      Returns:
      the resource type for the BlockModule.BlockStateInfoNeedRebuild resource.
    • invalidateAndReturnIfNeedRebuild

      public boolean invalidateAndReturnIfNeedRebuild()
      Invalidates the rebuild flag and returns whether a rebuild was needed.
      Returns:
      true if a rebuild was needed, false otherwise.
    • markAsNeedRebuild

      public void markAsNeedRebuild()
      Called to mark that the block state information needs to be rebuilt.
    • clone

      public Resource<ChunkStore> clone()
      Specified by:
      clone in interface Resource<ChunkStore>
      Returns:
      a clone instance of the original resource instance.