diff options
author | Alexdoru <57050655+Alexdoru@users.noreply.github.com> | 2024-10-31 03:33:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-31 02:33:51 +0000 |
commit | 5ac1df7018ec085d1894a5b4e3e46c20e20e118f (patch) | |
tree | f5f9eabff05c31c325581ab9361b9168e20a7d6e /src/main/java/gtPlusPlus/api | |
parent | 5b9c78cad1d62687c9429c8a6a6d4b29d4db9368 (diff) | |
download | GT5-Unofficial-5ac1df7018ec085d1894a5b4e3e46c20e20e118f.tar.gz GT5-Unofficial-5ac1df7018ec085d1894a5b4e3e46c20e20e118f.tar.bz2 GT5-Unofficial-5ac1df7018ec085d1894a5b4e3e46c20e20e118f.zip |
Delete 4 unused GT++ classes (#3426)
Diffstat (limited to 'src/main/java/gtPlusPlus/api')
-rw-r--r-- | src/main/java/gtPlusPlus/api/objects/minecraft/AABB.java | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/src/main/java/gtPlusPlus/api/objects/minecraft/AABB.java b/src/main/java/gtPlusPlus/api/objects/minecraft/AABB.java deleted file mode 100644 index e516f12ddd..0000000000 --- a/src/main/java/gtPlusPlus/api/objects/minecraft/AABB.java +++ /dev/null @@ -1,67 +0,0 @@ -package gtPlusPlus.api.objects.minecraft; - -import net.minecraft.entity.Entity; -import net.minecraft.util.AxisAlignedBB; -import net.minecraft.world.World; - -import gtPlusPlus.core.util.minecraft.EntityUtils; - -/** - * Generates an AABB around an entity. - * - * @author Alkalus - * - */ -public class AABB { - - private final AxisAlignedBB mAabb; - private final World mWorld; - - /** - * Creates a AxisAlignedBB based around an Entity. - * - * @param aEntity - The Entity to work with. - * @param x - Maximum X from origin. - * @param y - Maximum Y from origin. - * @param z - Maximum Z from origin. - */ - public AABB(Entity aEntity, int x, int y, int z) { - if (aEntity == null) { - mAabb = null; - mWorld = null; - } else { - mWorld = aEntity.worldObj; - BlockPos aEntityLocation = EntityUtils.findBlockPosUnderEntity(aEntity); - int xMin, xMax, yMin, yMax, zMin, zMax; - xMin = aEntityLocation.xPos; - yMin = aEntityLocation.yPos; - zMin = aEntityLocation.zPos; - xMax = aEntityLocation.xPos + x; - yMax = aEntityLocation.yPos + y; - zMax = aEntityLocation.zPos + z; - mAabb = AxisAlignedBB.getBoundingBox(xMin, yMin, zMin, xMax, yMax, zMax); - } - } - - /** - * Used to get the AxisAlignedBB from this class. - * - * @return - */ - public AxisAlignedBB get() { - return mAabb; - } - - /** - * Used to determine if this object is valid or not. - * - * @return - */ - public boolean valid() { - return mAabb != null && mWorld != null; - } - - public World world() { - return mWorld; - } -} |