New stuffs

This commit is contained in:
Dawson
2022-08-25 11:00:51 -04:00
parent 88d8c5b82c
commit 8cf842493b
71 changed files with 958 additions and 212 deletions
@@ -46,6 +46,13 @@ public class MiscUtils {
return toCheck.toLowerCase().contains(contains.toLowerCase());
}
public static void close(AutoCloseable... closeables) {
try {
for (AutoCloseable closeable : closeables) if (closeable != null) closeable.close();
} catch (Exception e) {
e.printStackTrace();
}
}
public static boolean isInMaterialBB(World world, SimpleCollisionBox entityBox, XMaterial xmaterial) {
int startX = MathHelper.floor_double(entityBox.xMin);
int startY = MathHelper.floor_double(entityBox.yMin);