Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package lavaInfusionPackets;
- import cpw.mods.fml.common.network.simpleimpl.IMessage;
- import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
- import cpw.mods.fml.common.network.simpleimpl.MessageContext;
- public class PacketHandler implements IMessageHandler<MagmaChargePacket, IMessage>
- {
- @Override
- public IMessage onMessage(MagmaChargePacket message, MessageContext ctx)
- {
- System.out.println(String.format("Received %s from %s", message.magmaFoundationChargeAmount, ctx.getServerHandler().playerEntity.getDisplayName()));
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment