From a26324b8d84f1185d1452ff6ce77f1978efad2e7 Mon Sep 17 00:00:00 2001 From: Tec Date: Tue, 16 Jul 2019 12:14:42 +0200 Subject: Add proxy get Player --- src/main/java/com/github/technus/tectech/proxy/ClientProxy.java | 6 ++++++ src/main/java/com/github/technus/tectech/proxy/CommonProxy.java | 4 ++++ 2 files changed, 10 insertions(+) (limited to 'src/main/java/com') diff --git a/src/main/java/com/github/technus/tectech/proxy/ClientProxy.java b/src/main/java/com/github/technus/tectech/proxy/ClientProxy.java index 255cf56e96..d66cc8bf82 100644 --- a/src/main/java/com/github/technus/tectech/proxy/ClientProxy.java +++ b/src/main/java/com/github/technus/tectech/proxy/ClientProxy.java @@ -14,6 +14,7 @@ import cpw.mods.fml.common.Loader; import gregtech.api.interfaces.tileentity.IGregTechTileEntity; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; +import net.minecraft.client.entity.EntityClientPlayerMP; import net.minecraft.client.gui.FontRenderer; import net.minecraft.client.gui.GuiNewChat; import net.minecraft.client.particle.EntityExplodeFX; @@ -138,4 +139,9 @@ public class ClientProxy extends CommonProxy { public void renderAABB(AxisAlignedBB box) { renderAABB(Minecraft.getMinecraft().theWorld,box); } + + @Override + public EntityClientPlayerMP getPlayer(){ + return Minecraft.getMinecraft().thePlayer; + } } diff --git a/src/main/java/com/github/technus/tectech/proxy/CommonProxy.java b/src/main/java/com/github/technus/tectech/proxy/CommonProxy.java index 598a8b148f..6f5f367d7f 100644 --- a/src/main/java/com/github/technus/tectech/proxy/CommonProxy.java +++ b/src/main/java/com/github/technus/tectech/proxy/CommonProxy.java @@ -81,4 +81,8 @@ public class CommonProxy implements IGuiHandler { } return false; } + + public EntityPlayer getPlayer(){ + return null; + } } -- cgit