mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 20:22:36 +00:00
22 lines
570 B
Java
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);
|
|
}
|
|
}
|