mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
More API stuff, make Pos3D actually override the Vec3 methods
This commit is contained in:
1 parent
956dab666d
commit
4384dbe376
3 files changed
+19
-7
No files matched your search
@@ -84,6 +84,18 @@ public class Coord4D extends BlockPos
|
||||
dimensionId = dimension;
|
||||
}
|
||||
|
||||
public Coord4D(Vec3i pos)
|
||||
{
|
||||
this(pos, 0);
|
||||
}
|
||||
|
||||
public Coord4D(Vec3i pos, int dimension)
|
||||
{
|
||||
this(pos.getX(), pos.getY(), pos.getZ());
|
||||
|
||||
dimensionId = dimension;
|
||||
}
|
||||
|
||||
|
||||
public Coord4D(MovingObjectPosition mop)
|
||||
{
|
||||
|
||||
@@ -184,7 +184,7 @@ public class Pos3D extends Vec3
|
||||
* @param yaw - yaw to rotate by
|
||||
* @return rotated Pos3D
|
||||
*/
|
||||
public Pos3D rotateYaw(double yaw)
|
||||
public Pos3D rotateYaw(float yaw)
|
||||
{
|
||||
double yawRadians = Math.toRadians(yaw);
|
||||
|
||||
@@ -200,7 +200,7 @@ public class Pos3D extends Vec3
|
||||
return new Pos3D(xPos, yCoord, zPos);
|
||||
}
|
||||
|
||||
public Pos3D rotatePitch(double pitch)
|
||||
public Pos3D rotatePitch(float pitch)
|
||||
{
|
||||
double pitchRadians = Math.toRadians(pitch);
|
||||
|
||||
@@ -216,12 +216,12 @@ public class Pos3D extends Vec3
|
||||
return new Pos3D(xCoord, yPos, zPos);
|
||||
}
|
||||
|
||||
public Pos3D rotate(double yaw, double pitch)
|
||||
public Pos3D rotate(float yaw, float pitch)
|
||||
{
|
||||
return rotate(yaw, pitch, 0);
|
||||
}
|
||||
|
||||
public Pos3D rotate(double yaw, double pitch, double roll)
|
||||
public Pos3D rotate(float yaw, float pitch, float roll)
|
||||
{
|
||||
double yawRadians = Math.toRadians(yaw);
|
||||
double pitchRadians = Math.toRadians(pitch);
|
||||
|
||||
@@ -124,21 +124,21 @@ public class Gas
|
||||
* @param i - IIcon to associate with this Gas
|
||||
* @return this Gas object
|
||||
*/
|
||||
/*
|
||||
public Gas setIcon(ResourceLocation i)
|
||||
{
|
||||
icon = i;
|
||||
|
||||
/*
|
||||
if(hasFluid())
|
||||
{
|
||||
fluid.setIcons(getIcon());
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
from_fluid = false;
|
||||
|
||||
return this;
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* Gets the ID associated with this gas.
|
||||
|
||||
Reference in new issue
Block a user