diff options
author | Tec <daniel112092@gmail.com> | 2019-07-16 12:14:42 +0200 |
---|---|---|
committer | Tec <daniel112092@gmail.com> | 2019-07-16 12:14:42 +0200 |
commit | a26324b8d84f1185d1452ff6ce77f1978efad2e7 (patch) | |
tree | 98ae43678a5c991695c87e78c39f26bf4e334c56 /src | |
parent | ba2ebe760a7000b058ef504505d73aabefc6a576 (diff) | |
download | GT5-Unofficial-a26324b8d84f1185d1452ff6ce77f1978efad2e7.tar.gz GT5-Unofficial-a26324b8d84f1185d1452ff6ce77f1978efad2e7.tar.bz2 GT5-Unofficial-a26324b8d84f1185d1452ff6ce77f1978efad2e7.zip |
Add proxy get Player
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/github/technus/tectech/proxy/ClientProxy.java | 6 | ||||
-rw-r--r-- | src/main/java/com/github/technus/tectech/proxy/CommonProxy.java | 4 |
2 files changed, 10 insertions, 0 deletions
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; + } } |