Cleanup and some changes...

This commit is contained in:
fewizz committed 2016-03-16 17:49:28 +03:00
1 parent a39ac3bd74
commit 7b6ec78cd7
125 files changed
+971 -955

No files matched your search

@@ -0,0 +1,29 @@
package emt.network;
import io.netty.buffer.ByteBuf;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.network.simpleimpl.IMessage;
import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
import cpw.mods.fml.common.network.simpleimpl.MessageContext;
import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import emt.init.ItemRegistry;
public class PacketEMTKeys implements IMessage, IMessageHandler<PacketEMTKeys, IMessage> {
@Override
public IMessage onMessage(PacketEMTKeys message, MessageContext ctx) {
if (ctx.getServerHandler().playerEntity.inventory.armorInventory[2] != null && ctx.getServerHandler().playerEntity.inventory.armorInventory[2].getItem() == ItemRegistry.quantumArmor) {
ctx.getServerHandler().playerEntity.inventory.armorInventory[2].stackTagCompound.setBoolean("unequip", true);
}
return null;
}
@Override
public void fromBytes(ByteBuf buf) {
}
@Override
public void toBytes(ByteBuf buf) {
}
}