Expose the nethandler in a few places, and pull out FMLEmbeddedChannel, exposing a utility method on it.

More to come.
This commit is contained in:
Christian committed 2013-12-31 09:45:26 -05:00
1 parent f36152398d
commit 22ba6fda5e
10 files changed
+100 -30

No files matched your search

@@ -24,6 +24,7 @@ import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTBase;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.INetHandler;
import net.minecraft.network.NetworkManager;
import net.minecraft.server.MinecraftServer;
import net.minecraft.world.World;
@@ -485,4 +486,9 @@ public class FMLCommonHandler
{
bus().post(new PlayerEvent.ItemSmeltedEvent(player, smelted));
}
public INetHandler getClientPlayHandler()
{
return sidedDelegate.getClientPlayHandler();
}
}