mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
chore: remove bad range annotations
This commit is contained in:
parent
53ec728f97
commit
d1798b7408
@ -2,7 +2,6 @@ package com.fastasyncworldedit.core.queue;
|
|||||||
|
|
||||||
import com.fastasyncworldedit.core.extent.filter.block.FilterBlock;
|
import com.fastasyncworldedit.core.extent.filter.block.FilterBlock;
|
||||||
import com.sk89q.worldedit.regions.Region;
|
import com.sk89q.worldedit.regions.Region;
|
||||||
import org.jetbrains.annotations.Range;
|
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
@ -18,8 +17,8 @@ public interface Filter {
|
|||||||
* @param chunkZ the z coordinate in the chunk
|
* @param chunkZ the z coordinate in the chunk
|
||||||
*/
|
*/
|
||||||
default boolean appliesChunk(
|
default boolean appliesChunk(
|
||||||
@Range(from = 0, to = 15) int chunkX,
|
int chunkX,
|
||||||
@Range(from = 0, to = 15) int chunkZ
|
int chunkZ
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,6 @@ package com.fastasyncworldedit.core.queue;
|
|||||||
|
|
||||||
import com.fastasyncworldedit.core.extent.filter.block.ChunkFilterBlock;
|
import com.fastasyncworldedit.core.extent.filter.block.ChunkFilterBlock;
|
||||||
import com.sk89q.worldedit.regions.Region;
|
import com.sk89q.worldedit.regions.Region;
|
||||||
import org.jetbrains.annotations.Range;
|
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
@ -25,7 +24,6 @@ public interface IChunk extends Trimable, IChunkGet, IChunkSet {
|
|||||||
*
|
*
|
||||||
* @return the x coordinate of the chunk
|
* @return the x coordinate of the chunk
|
||||||
*/
|
*/
|
||||||
@Range(from = 0, to = 15)
|
|
||||||
int getX();
|
int getX();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -33,7 +31,6 @@ public interface IChunk extends Trimable, IChunkGet, IChunkSet {
|
|||||||
*
|
*
|
||||||
* @return the z coordinate of the chunk
|
* @return the z coordinate of the chunk
|
||||||
*/
|
*/
|
||||||
@Range(from = 0, to = 15)
|
|
||||||
int getZ();
|
int getZ();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,14 +1,12 @@
|
|||||||
package com.fastasyncworldedit.core.queue;
|
package com.fastasyncworldedit.core.queue;
|
||||||
|
|
||||||
import org.jetbrains.annotations.Range;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* IGetBlocks may be cached by the WorldChunkCache so that it can be used between multiple
|
* IGetBlocks may be cached by the WorldChunkCache so that it can be used between multiple
|
||||||
* IQueueExtents - avoids conversion between a palette and raw data on every block get
|
* IQueueExtents - avoids conversion between a palette and raw data on every block get
|
||||||
*/
|
*/
|
||||||
public interface IChunkCache<T> extends Trimable {
|
public interface IChunkCache<T> extends Trimable {
|
||||||
|
|
||||||
T get(@Range(from = 0, to = 15) int chunkX, @Range(from = 0, to = 15) int chunkZ);
|
T get(int chunkX, int chunkZ);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
default boolean trim(boolean aggressive) {
|
default boolean trim(boolean aggressive) {
|
||||||
|
@ -7,7 +7,6 @@ import com.sk89q.worldedit.function.operation.Operation;
|
|||||||
import com.sk89q.worldedit.math.BlockVector2;
|
import com.sk89q.worldedit.math.BlockVector2;
|
||||||
import com.sk89q.worldedit.math.BlockVector3;
|
import com.sk89q.worldedit.math.BlockVector3;
|
||||||
import com.sk89q.worldedit.regions.Region;
|
import com.sk89q.worldedit.regions.Region;
|
||||||
import org.jetbrains.annotations.Range;
|
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
import java.io.Flushable;
|
import java.io.Flushable;
|
||||||
@ -51,12 +50,12 @@ public interface IQueueExtent<T extends IChunk> extends Flushable, Trimable, ICh
|
|||||||
* Get the cached get object. This is faster than getting the object using NMS and allows for
|
* Get the cached get object. This is faster than getting the object using NMS and allows for
|
||||||
* wrapping.
|
* wrapping.
|
||||||
*/
|
*/
|
||||||
IChunkGet getCachedGet(@Range(from = 0, to = 15) int chunkX, @Range(from = 0, to = 15) int chunkZ);
|
IChunkGet getCachedGet(int chunkX, int chunkZ);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the cached chunk set object.
|
* Get the cached chunk set object.
|
||||||
*/
|
*/
|
||||||
IChunkSet getCachedSet(@Range(from = 0, to = 15) int chunkX, @Range(from = 0, to = 15) int chunkZ);
|
IChunkSet getCachedSet(int chunkX, int chunkZ);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Submit the chunk so that it's changes are applied to the world
|
* Submit the chunk so that it's changes are applied to the world
|
||||||
|
Loading…
Reference in New Issue
Block a user