rm packet handle
This commit is contained in:
@@ -1,14 +0,0 @@
|
|||||||
package nmd.primal.energy.packethandle.chiselLathe;
|
|
||||||
|
|
||||||
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 MHChisel implements IMessageHandler<MPChisel, IMessage>{
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public IMessage onMessage(MPChisel message, MessageContext ctx) {
|
|
||||||
//ShelfFour.caseType = message.caseType;
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
package nmd.primal.energy.packethandle.chiselLathe;
|
|
||||||
|
|
||||||
import cpw.mods.fml.common.network.simpleimpl.IMessage;
|
|
||||||
import io.netty.buffer.ByteBuf;
|
|
||||||
|
|
||||||
public class MPChisel implements IMessage {
|
|
||||||
|
|
||||||
public int caseType;
|
|
||||||
|
|
||||||
public MPChisel() {}
|
|
||||||
|
|
||||||
public MPChisel(int x){
|
|
||||||
this.caseType = x;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void fromBytes(ByteBuf buf) {
|
|
||||||
this.caseType = buf.readInt();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void toBytes(ByteBuf buf) {
|
|
||||||
buf.writeInt(this.caseType);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user