chore: remove bad range annotations

This commit is contained in:
dordsor21 2023-11-26 12:28:47 +00:00
parent 53ec728f97
commit d1798b7408
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B
4 changed files with 5 additions and 12 deletions

View File

@ -2,7 +2,6 @@ package com.fastasyncworldedit.core.queue;
import com.fastasyncworldedit.core.extent.filter.block.FilterBlock;
import com.sk89q.worldedit.regions.Region;
import org.jetbrains.annotations.Range;
import javax.annotation.Nullable;
@ -18,8 +17,8 @@ public interface Filter {
* @param chunkZ the z coordinate in the chunk
*/
default boolean appliesChunk(
@Range(from = 0, to = 15) int chunkX,
@Range(from = 0, to = 15) int chunkZ
int chunkX,
int chunkZ
) {
return true;
}

View File

@ -2,7 +2,6 @@ package com.fastasyncworldedit.core.queue;
import com.fastasyncworldedit.core.extent.filter.block.ChunkFilterBlock;
import com.sk89q.worldedit.regions.Region;
import org.jetbrains.annotations.Range;
import javax.annotation.Nullable;
@ -25,7 +24,6 @@ public interface IChunk extends Trimable, IChunkGet, IChunkSet {
*
* @return the x coordinate of the chunk
*/
@Range(from = 0, to = 15)
int getX();
/**
@ -33,7 +31,6 @@ public interface IChunk extends Trimable, IChunkGet, IChunkSet {
*
* @return the z coordinate of the chunk
*/
@Range(from = 0, to = 15)
int getZ();
/**

View File

@ -1,14 +1,12 @@
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
* IQueueExtents - avoids conversion between a palette and raw data on every block get
*/
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
default boolean trim(boolean aggressive) {

View File

@ -7,7 +7,6 @@ import com.sk89q.worldedit.function.operation.Operation;
import com.sk89q.worldedit.math.BlockVector2;
import com.sk89q.worldedit.math.BlockVector3;
import com.sk89q.worldedit.regions.Region;
import org.jetbrains.annotations.Range;
import javax.annotation.Nullable;
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
* 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.
*/
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