Remove an unnecessary old reference from MessageSetEnergyValue

Stub out MessageSetBlacklistEntry for later development tomorrow
This commit is contained in:
Pahimar 2016-05-24 23:28:04 -04:00
parent 568196aa9e
commit 0c5f1ccb41
3 changed files with 27 additions and 3 deletions

View file

@ -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);
}
}

View file

@ -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<MessageSetBlacklistEntry, IMessage> {
public MessageSetBlacklistEntry() {
}
@Override
public void fromBytes(ByteBuf buf) {
}
@Override
public void toBytes(ByteBuf buf) {
}
@Override
public IMessage onMessage(MessageSetBlacklistEntry message, MessageContext ctx) {
return null;
}
}

View file

@ -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<MessageSetEnergyValue, IMessage> {
public Map<WrappedStack, EnergyValue> energyValueMap;
public EnergyValueStackMapping energyValueStackMapping;
public MessageSetEnergyValue() {
}
@ -31,7 +29,6 @@ public class MessageSetEnergyValue implements IMessage, IMessageHandler<MessageS
if (wrappedStack != null && wrappedStack.getWrappedObject() != null && energyValue != null) {
this.energyValueMap.put(wrappedStack, energyValue);
}
this.energyValueStackMapping = new EnergyValueStackMapping(wrappedStack, energyValue);
}
public MessageSetEnergyValue(Map<WrappedStack, EnergyValue> energyValueMap) {