Use ? super in Consumer/Predicate API (#9939)
This commit is contained in:
parent
3d12fa65fa
commit
cea171de11
13 changed files with 186 additions and 223 deletions
|
@ -17,9 +17,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
import java.util.Map;
|
||||
import org.bukkit.block.Block;
|
||||
@@ -0,0 +0,0 @@ public class Location implements Cloneable, ConfigurationSerializable, io.paperm
|
||||
|
||||
public boolean isChunkLoaded() { return this.getWorld().isChunkLoaded(locToBlock(x) >> 4, locToBlock(z) >> 4); } // Paper
|
||||
|
||||
// Paper start
|
||||
+ // Paper start - isGenerated API
|
||||
+ /**
|
||||
+ * Checks if a {@link Chunk} has been generated at this location.
|
||||
+ *
|
||||
|
@ -30,9 +31,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ Preconditions.checkNotNull(world, "Location has no world!");
|
||||
+ return world.isChunkGenerated(locToBlock(x) >> 4, locToBlock(z) >> 4);
|
||||
+ }
|
||||
+ // Paper end - isGenerated API
|
||||
+
|
||||
// Paper start - expand location manipulation API
|
||||
|
||||
/**
|
||||
* Sets the position of this Location and returns itself
|
||||
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/World.java
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue