More work on teleporters, implemented chunkloading

This commit is contained in:
Aidan C. Brady committed 2015-03-12 22:55:37 -05:00
1 parent 9c21621c06
commit f9c10d9012
11 files changed
+332 -135

No files matched your search

+10
View File
@@ -1,6 +1,7 @@
package mekanism.api;
import net.minecraft.entity.Entity;
import net.minecraft.world.ChunkCoordIntPair;
import net.minecraft.world.World;
import net.minecraft.world.chunk.Chunk;
@@ -75,6 +76,15 @@ public class Chunk3D
return world.getChunkFromChunkCoords(xCoord, zCoord);
}
/**
* Returns this Chunk3D in the Minecraft-based ChunkCoordIntPair format.
* @return this Chunk3D as a ChunkCoordIntPair
*/
public ChunkCoordIntPair toPair()
{
return new ChunkCoordIntPair(xCoord, zCoord);
}
@Override
public Coord4D clone()
{