From a19231b45149636790b04d02ed91d2420ff2a69c Mon Sep 17 00:00:00 2001 From: Vincent Lee Date: Wed, 26 Feb 2020 19:19:12 -0600 Subject: [PATCH] More api --- src/main/java/vazkii/botania/api/imc/IMC.java | 6 ------ .../botania/api/internal/VanillaPacketDispatcher.java | 4 ---- .../java/vazkii/botania/common/core/helper/MathHelper.java | 4 +--- 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/src/main/java/vazkii/botania/api/imc/IMC.java b/src/main/java/vazkii/botania/api/imc/IMC.java index 29190b181..bc22d077b 100644 --- a/src/main/java/vazkii/botania/api/imc/IMC.java +++ b/src/main/java/vazkii/botania/api/imc/IMC.java @@ -36,10 +36,4 @@ public class IMC { * The argument should be a {@link PaintableBlockMessage}, any other types are ignored. */ public static final String REGISTER_PAINTABLE_BLOCK = "register_paintable_block"; - - /** - * Registers a mana infusion recipe at the mana pool.
- * The argument should be a {@link vazkii.botania.api.recipe.RecipeManaInfusion}, any other types are ignored. - */ - public static final String REGISTER_MANA_INFUSION = "register_mana_infusion"; } diff --git a/src/main/java/vazkii/botania/api/internal/VanillaPacketDispatcher.java b/src/main/java/vazkii/botania/api/internal/VanillaPacketDispatcher.java index 119c5a4d0..78ab98ab2 100644 --- a/src/main/java/vazkii/botania/api/internal/VanillaPacketDispatcher.java +++ b/src/main/java/vazkii/botania/api/internal/VanillaPacketDispatcher.java @@ -37,8 +37,4 @@ public final class VanillaPacketDispatcher { dispatchTEToNearbyPlayers(tile); } - public static float pointDistancePlane(double x1, double y1, double x2, double y2) { - return (float) Math.hypot(x1 - x2, y1 - y2); - } - } diff --git a/src/main/java/vazkii/botania/common/core/helper/MathHelper.java b/src/main/java/vazkii/botania/common/core/helper/MathHelper.java index fbb07c612..d3db61b55 100644 --- a/src/main/java/vazkii/botania/common/core/helper/MathHelper.java +++ b/src/main/java/vazkii/botania/common/core/helper/MathHelper.java @@ -12,7 +12,6 @@ package vazkii.botania.common.core.helper; import net.minecraft.entity.Entity; import net.minecraft.util.Direction; -import vazkii.botania.api.internal.VanillaPacketDispatcher; public final class MathHelper { public static final Direction[] HORIZONTALS = { Direction.SOUTH, Direction.WEST, Direction.NORTH, Direction.EAST }; @@ -20,9 +19,8 @@ public final class MathHelper { return (float) Math.sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2) + (z1 - z2) * (z1 - z2)); } - // Backwards compatibility public static float pointDistancePlane(double x1, double y1, double x2, double y2) { - return VanillaPacketDispatcher.pointDistancePlane(x1, y1, x2, y2); + return (float) Math.hypot(x1 - x2, y1 - y2); } public static void setEntityMotionFromVector(Entity entity, Vector3 originalPosVector, float modifier) {