testserver/Spigot-Server-Patches/0066-Add-World-Util-Methods...

23 lines
988 B
Diff
Raw Normal View History

2019-12-11 02:43:21 +00:00
From c9cf346e450300465e7d6491d96007120a892e30 Mon Sep 17 00:00:00 2001
From: Aikar <aikar@aikar.co>
Date: Fri, 18 Mar 2016 20:16:03 -0400
Subject: [PATCH] Add World Util Methods
Methods that can be used for other patches to help improve logic.
2019-05-05 23:24:37 +00:00
diff --git a/src/main/java/net/minecraft/server/WorldBorder.java b/src/main/java/net/minecraft/server/WorldBorder.java
2019-12-11 02:43:21 +00:00
index 020e5c171..4ee13ac45 100644
2019-05-05 23:24:37 +00:00
--- a/src/main/java/net/minecraft/server/WorldBorder.java
+++ b/src/main/java/net/minecraft/server/WorldBorder.java
@@ -19,6 +19,7 @@ public class WorldBorder {
public WorldBorder() {}
+ public final boolean isInBounds(BlockPosition blockposition) { return this.a(blockposition); } // Paper - OBFHELPER
public boolean a(BlockPosition blockposition) {
return (double) (blockposition.getX() + 1) > this.c() && (double) blockposition.getX() < this.e() && (double) (blockposition.getZ() + 1) > this.d() && (double) blockposition.getZ() < this.f();
}
--
2019-12-11 02:43:21 +00:00
2.24.0