mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 23:03:01 +00:00
Update some MekanismUtils functions to use Coord4D
This commit is contained in:
1 parent
de0cdd5334
commit
c9f51bd970
8 files changed
+60
-102
No files matched your search
@@ -10,6 +10,7 @@ import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
import net.minecraft.world.IBlockAccess;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.chunk.Chunk;
|
||||
@@ -76,6 +77,13 @@ public class Coord4D
|
||||
dimensionId = dimension;
|
||||
}
|
||||
|
||||
public Coord4D(MovingObjectPosition mop)
|
||||
{
|
||||
xCoord = mop.blockX;
|
||||
yCoord = mop.blockY;
|
||||
zCoord = mop.blockZ;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the metadata of the block representing this Coord4D.
|
||||
* @param world - world this Coord4D is in
|
||||
|
||||
Reference in new issue
Block a user