Contents
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.
-
Field Summary
Fields inherited from interface Resource
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionEmpty Constructor of aBlockModule.BlockStateInfoNeedRebuildinstance.BlockStateInfoNeedRebuild(boolean needRebuild) Default Constructor of aBlockModule.BlockStateInfoNeedRebuildinstance. -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanInvalidates the rebuild flag and returns whether a rebuild was needed.voidCalled to mark that the block state information needs to be rebuilt.
-
Constructor Details
-
BlockStateInfoNeedRebuild
public BlockStateInfoNeedRebuild()Empty Constructor of aBlockModule.BlockStateInfoNeedRebuildinstance. -
BlockStateInfoNeedRebuild
public BlockStateInfoNeedRebuild(boolean needRebuild) Default Constructor of aBlockModule.BlockStateInfoNeedRebuildinstance.- Parameters:
needRebuild- Whether the block state information needs to be rebuilt.
-
-
Method Details
-
getResourceType
- Returns:
- the resource type for the
BlockModule.BlockStateInfoNeedRebuildresource.
-
invalidateAndReturnIfNeedRebuild
public boolean invalidateAndReturnIfNeedRebuild()Invalidates the rebuild flag and returns whether a rebuild was needed.- Returns:
trueif a rebuild was needed,falseotherwise.
-
markAsNeedRebuild
public void markAsNeedRebuild()Called to mark that the block state information needs to be rebuilt. -
clone
- Specified by:
clonein interfaceResource<ChunkStore>- Returns:
- a clone instance of the original resource instance.
-