package org.apollo.game.release.r377;

import org.apollo.game.message.impl.FlashTabInterfaceMessage;
import org.apollo.net.codec.game.DataType;
import org.apollo.net.codec.game.GamePacket;
import org.apollo.net.codec.game.GamePacketBuilder;
import org.apollo.net.release.MessageEncoder;

/**
 * A {@link MessageEncoder} for the {@link FlashTabInterfaceMessage}.
 *
 * @author Major
 */
public final class FlashTabInterfaceMessageEncoder extends MessageEncoder<FlashTabInterfaceMessage> {

	@Override
	public GamePacket encode(FlashTabInterfaceMessage message) {
		GamePacketBuilder builder = new GamePacketBuilder(283);
		builder.put(DataType.BYTE, message.getTab());
		return builder.toGamePacket();
	}

}
package org.apollo.game.release.r377;

import org.apollo.game.message.impl.FlashTabInterfaceMessage;
import org.apollo.net.codec.game.DataType;
import org.apollo.net.codec.game.GamePacket;
import org.apollo.net.codec.game.GamePacketBuilder;
import org.apollo.net.release.MessageEncoder;

/**
 * A {@link MessageEncoder} for the {@link FlashTabInterfaceMessage}.
 *
 * @author Major
 */
public final class FlashTabInterfaceMessageEncoder extends MessageEncoder<FlashTabInterfaceMessage> {

	@Override
	public GamePacket encode(FlashTabInterfaceMessage message) {
		GamePacketBuilder builder = new GamePacketBuilder(238);
		builder.put(DataType.BYTE, message.getTab());
		return builder.toGamePacket();
	}

}
Fix 377 FlashTabInterfaceMessageEncoder