@CatalogedBy(value=ChunkRegenerateFlags.class) public interface ChunkRegenerateFlag
| Modifier and Type | Method and Description |
|---|---|
ChunkRegenerateFlag |
andFlag(ChunkRegenerateFlag flag)
Gets the equivalent
ChunkRegenerateFlag of this flag with the
trues set for this flag and the provided flag, such that
only if both flags have the same true flags set will persist. |
ChunkRegenerateFlag |
andNotFlag(ChunkRegenerateFlag flag)
Gets the equivalent
ChunkRegenerateFlag of this flag with the
trues set for this flag and the provided flag, such that
only if both flags have the same true flags set will persist. |
boolean |
create()
Gets whether this flag defines that a chunk should be created if it does
not exist.
|
boolean |
entities()
Gets whether this flag will preserve entities in chunks that are
regenerated.
|
ChunkRegenerateFlag |
withCreate(boolean create)
Gets the equivalent
ChunkRegenerateFlag of this flag with all
other flags while having the desired create as defined by the
parameter. |
ChunkRegenerateFlag |
withEntities(boolean entities)
Gets the equivalent
ChunkRegenerateFlag of this flag with all
other flags while having the desired entities as defined by the
parameter. |
boolean create()
boolean entities()
ChunkRegenerateFlag withCreate(boolean create)
ChunkRegenerateFlag of this flag with all
other flags while having the desired create as defined by the
parameter.create - Whether to create chunkChunkRegenerateFlag withEntities(boolean entities)
ChunkRegenerateFlag of this flag with all
other flags while having the desired entities as defined by the
parameter.entities - Whether to preserve entitiesChunkRegenerateFlag andFlag(ChunkRegenerateFlag flag)
ChunkRegenerateFlag of this flag with the
trues set for this flag and the provided flag, such that
only if both flags have the same true flags set will persist.
For example, if this flag has create() and the incoming flag
has create() returning true, the resulting flag will
have create() return true as well. The inverse is also
true. If either has differing flags for any of the above methods, the
resulting flag will have a false value.
flag - The incoming flag to and with this flagChunkRegenerateFlag andNotFlag(ChunkRegenerateFlag flag)
ChunkRegenerateFlag of this flag with the
trues set for this flag and the provided flag, such that
only if both flags have the same true flags set will persist.
For example, if this flag has create() and the incoming flag
has create() returning true, the resulting flag will
have create() return true as well. The inverse is also
true. If either has differing flags for any of the above methods, the
resulting flag will have a false value.
flag - The incoming flag to and with this flag