mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-24 20:42:39 +02:00
small style cleanup
This commit is contained in:
parent
9523892bce
commit
933b2663eb
@ -84,6 +84,7 @@ public class ArgumentDynamicWord extends Argument<String> {
|
|||||||
* @param dynamicRestriction the dynamic restriction, can be null to disable
|
* @param dynamicRestriction the dynamic restriction, can be null to disable
|
||||||
* @return 'this' for chaining
|
* @return 'this' for chaining
|
||||||
*/
|
*/
|
||||||
|
@NotNull
|
||||||
public ArgumentDynamicWord fromRestrictions(@Nullable StringValidator dynamicRestriction) {
|
public ArgumentDynamicWord fromRestrictions(@Nullable StringValidator dynamicRestriction) {
|
||||||
this.dynamicRestriction = dynamicRestriction;
|
this.dynamicRestriction = dynamicRestriction;
|
||||||
return this;
|
return this;
|
||||||
|
@ -8,6 +8,7 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
* Represents options for {@link Batch}s.
|
* Represents options for {@link Batch}s.
|
||||||
*/
|
*/
|
||||||
public class BatchOption {
|
public class BatchOption {
|
||||||
|
|
||||||
private boolean fullChunk = false;
|
private boolean fullChunk = false;
|
||||||
private boolean calculateInverse = false;
|
private boolean calculateInverse = false;
|
||||||
private boolean unsafeApply = false;
|
private boolean unsafeApply = false;
|
||||||
@ -49,7 +50,7 @@ public class BatchOption {
|
|||||||
* If set, the batch may not be ready, or it may be partially ready which will cause an undefined result.
|
* If set, the batch may not be ready, or it may be partially ready which will cause an undefined result.
|
||||||
* {@link Batch#isReady()} and {@link Batch#awaitReady()} may be used to check if it is ready and block
|
* {@link Batch#isReady()} and {@link Batch#awaitReady()} may be used to check if it is ready and block
|
||||||
* until it is ready.
|
* until it is ready.
|
||||||
*
|
* <p>
|
||||||
* The default implementations of {@link ChunkBatch}, {@link AbsoluteBlockBatch}, and {@link RelativeBlockBatch}
|
* The default implementations of {@link ChunkBatch}, {@link AbsoluteBlockBatch}, and {@link RelativeBlockBatch}
|
||||||
* are always ready unless they are an inverse batch. This is not a safe assumption, and may change in the future.
|
* are always ready unless they are an inverse batch. This is not a safe assumption, and may change in the future.
|
||||||
* <p>
|
* <p>
|
||||||
|
@ -36,8 +36,8 @@ import java.util.concurrent.CountDownLatch;
|
|||||||
* @see Batch
|
* @see Batch
|
||||||
*/
|
*/
|
||||||
public class ChunkBatch implements Batch<ChunkCallback> {
|
public class ChunkBatch implements Batch<ChunkCallback> {
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(ChunkBatch.class);
|
|
||||||
|
|
||||||
|
private static final Logger LOGGER = LoggerFactory.getLogger(ChunkBatch.class);
|
||||||
|
|
||||||
// Need to be synchronized manually
|
// Need to be synchronized manually
|
||||||
// Format: blockIndex/blockStateId/customBlockId (32/16/16 bits)
|
// Format: blockIndex/blockStateId/customBlockId (32/16/16 bits)
|
||||||
|
Loading…
Reference in New Issue
Block a user