Update FaWe #7

Zusammengeführt
Lixfel hat 467 Commits von update nach main 2024-11-28 22:27:32 +01:00 zusammengeführt
4 geänderte Dateien mit 5 neuen und 12 gelöschten Zeilen
Nur Änderungen aus Commit d1798b7408 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -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;
}

Datei anzeigen

@ -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();
/**

Datei anzeigen

@ -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) {

Datei anzeigen

@ -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