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
|
||||
* @return 'this' for chaining
|
||||
*/
|
||||
@NotNull
|
||||
public ArgumentDynamicWord fromRestrictions(@Nullable StringValidator dynamicRestriction) {
|
||||
this.dynamicRestriction = dynamicRestriction;
|
||||
return this;
|
||||
|
@ -8,6 +8,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
* Represents options for {@link Batch}s.
|
||||
*/
|
||||
public class BatchOption {
|
||||
|
||||
private boolean fullChunk = false;
|
||||
private boolean calculateInverse = 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.
|
||||
* {@link Batch#isReady()} and {@link Batch#awaitReady()} may be used to check if it is ready and block
|
||||
* until it is ready.
|
||||
*
|
||||
* <p>
|
||||
* 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.
|
||||
* <p>
|
||||
|
@ -36,8 +36,8 @@ import java.util.concurrent.CountDownLatch;
|
||||
* @see Batch
|
||||
*/
|
||||
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
|
||||
// Format: blockIndex/blockStateId/customBlockId (32/16/16 bits)
|
||||
|
@ -264,7 +264,7 @@ public class BlockPosition implements PublicCloneable<BlockPosition> {
|
||||
*/
|
||||
@NotNull
|
||||
public BlockPosition getRelative(BlockFace face) {
|
||||
switch(face) {
|
||||
switch (face) {
|
||||
case BOTTOM:
|
||||
return new BlockPosition(getX(), getY() - 1, getZ());
|
||||
case TOP:
|
||||
|
Loading…
Reference in New Issue
Block a user