From 89db9b7a64f6fa1aecdf3116884aca996b034b64 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Sat, 24 Apr 2021 15:52:09 +0200 Subject: [PATCH] new AABBBlock constructor --- Paper/.classpath | 7 +++++++ .../main/java/fr/pandacube/lib/paper/util/AABBBlock.java | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/Paper/.classpath b/Paper/.classpath index 0e36958..3721ade 100644 --- a/Paper/.classpath +++ b/Paper/.classpath @@ -16,5 +16,12 @@ + + + + + + + diff --git a/Paper/src/main/java/fr/pandacube/lib/paper/util/AABBBlock.java b/Paper/src/main/java/fr/pandacube/lib/paper/util/AABBBlock.java index 97a86c6..6abb985 100644 --- a/Paper/src/main/java/fr/pandacube/lib/paper/util/AABBBlock.java +++ b/Paper/src/main/java/fr/pandacube/lib/paper/util/AABBBlock.java @@ -27,6 +27,10 @@ public class AABBBlock implements Iterable { this(l1.getBlockX(), l1.getBlockY(), l1.getBlockZ(), l2.getBlockX(), l2.getBlockY(), l2.getBlockZ()); } + public AABBBlock(BlockVector l1, BlockVector l2) { + this(l1.getBlockX(), l1.getBlockY(), l1.getBlockZ(), l2.getBlockX(), l2.getBlockY(), l2.getBlockZ()); + } + public AABBBlock(int p1x, int p1y, int p1z, int p2x, int p2y, int p2z) { /* * Prends les points extérieurs permettant de former un bouding box englobant