Files
TinkersConstruct/tconstruct/util/player/FakePlayerLogic.java
T
2013-08-07 19:06:26 -07:00

22 lines
570 B
Java

package tconstruct.util.player;
import net.minecraft.util.ChunkCoordinates;
import net.minecraft.world.World;
import net.minecraftforge.common.FakePlayer;
import tconstruct.library.blocks.InventoryLogic;
public class FakePlayerLogic extends FakePlayer
{
InventoryLogic logic;
public FakePlayerLogic(World world, String name, InventoryLogic logic)
{
super(world, name);
this.logic = logic;
}
public ChunkCoordinates getPlayerCoordinates()
{
return new ChunkCoordinates(logic.xCoord, logic.yCoord, logic.zCoord);
}
}