mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 19:29:31 +00:00
More api
This commit is contained in:
1 parent
926b8d864a
commit
a19231b451
3 files changed
+1
-13
No files matched your search
@@ -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.<br />
|
||||
* 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";
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user