cn.nukkit.network.protocol.SetCommandsEnabledPacket Maven / Gradle / Ivy
package cn.nukkit.network.protocol;
import lombok.ToString;
@ToString
public class SetCommandsEnabledPacket extends DataPacket {
public static final byte NETWORK_ID = ProtocolInfo.SET_COMMANDS_ENABLED_PACKET;
public boolean enabled;
@Override
public byte pid() {
return NETWORK_ID;
}
@Override
public void decode() {
}
@Override
public void encode() {
this.reset();
this.putBoolean(this.enabled);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy