From 0c5f1ccb41f3ae7ed01227ea18bf60bc4c2c2ce7 Mon Sep 17 00:00:00 2001 From: Pahimar Date: Tue, 24 May 2016 23:28:04 -0400 Subject: [PATCH] Remove an unnecessary old reference from MessageSetEnergyValue Stub out MessageSetBlacklistEntry for later development tomorrow --- .../pahimar/ee3/network/PacketHandler.java | 1 + .../message/MessageSetBlacklistEntry.java | 26 +++++++++++++++++++ .../message/MessageSetEnergyValue.java | 3 --- 3 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 src/main/java/com/pahimar/ee3/network/message/MessageSetBlacklistEntry.java diff --git a/src/main/java/com/pahimar/ee3/network/PacketHandler.java b/src/main/java/com/pahimar/ee3/network/PacketHandler.java index 6e6c82dd..da7aa4ca 100644 --- a/src/main/java/com/pahimar/ee3/network/PacketHandler.java +++ b/src/main/java/com/pahimar/ee3/network/PacketHandler.java @@ -30,5 +30,6 @@ public class PacketHandler { INSTANCE.registerMessage(MessagePlayerKnowledge.class, MessagePlayerKnowledge.class, 16, Side.CLIENT); INSTANCE.registerMessage(MessageTileEntityResearchStation.class, MessageTileEntityResearchStation.class, 17, Side.CLIENT); INSTANCE.registerMessage(MessageSyncBlacklist.class, MessageSyncBlacklist.class, 18, Side.CLIENT); + INSTANCE.registerMessage(MessageSetBlacklistEntry.class, MessageSetBlacklistEntry.class, 19, Side.CLIENT); } } diff --git a/src/main/java/com/pahimar/ee3/network/message/MessageSetBlacklistEntry.java b/src/main/java/com/pahimar/ee3/network/message/MessageSetBlacklistEntry.java new file mode 100644 index 00000000..fbe23f36 --- /dev/null +++ b/src/main/java/com/pahimar/ee3/network/message/MessageSetBlacklistEntry.java @@ -0,0 +1,26 @@ +package com.pahimar.ee3.network.message; + +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 io.netty.buffer.ByteBuf; + +public class MessageSetBlacklistEntry implements IMessage, IMessageHandler { + + public MessageSetBlacklistEntry() { + } + + @Override + public void fromBytes(ByteBuf buf) { + } + + @Override + public void toBytes(ByteBuf buf) { + } + + @Override + public IMessage onMessage(MessageSetBlacklistEntry message, MessageContext ctx) { + + return null; + } +} diff --git a/src/main/java/com/pahimar/ee3/network/message/MessageSetEnergyValue.java b/src/main/java/com/pahimar/ee3/network/message/MessageSetEnergyValue.java index 80624057..3374dc0b 100644 --- a/src/main/java/com/pahimar/ee3/network/message/MessageSetEnergyValue.java +++ b/src/main/java/com/pahimar/ee3/network/message/MessageSetEnergyValue.java @@ -4,7 +4,6 @@ import com.google.gson.JsonParseException; import com.pahimar.ee3.api.exchange.EnergyValue; import com.pahimar.ee3.api.exchange.EnergyValueRegistryProxy; import com.pahimar.ee3.exchange.EnergyValueRegistry; -import com.pahimar.ee3.exchange.EnergyValueStackMapping; import com.pahimar.ee3.exchange.WrappedStack; import com.pahimar.ee3.util.CompressionHelper; import com.pahimar.ee3.util.LogHelper; @@ -20,7 +19,6 @@ import java.util.TreeMap; public class MessageSetEnergyValue implements IMessage, IMessageHandler { public Map energyValueMap; - public EnergyValueStackMapping energyValueStackMapping; public MessageSetEnergyValue() { } @@ -31,7 +29,6 @@ public class MessageSetEnergyValue implements IMessage, IMessageHandler energyValueMap) {