cn.nukkit.network.protocol.LabTablePacket Maven / Gradle / Ivy
package cn.nukkit.network.protocol;
import cn.nukkit.api.PowerNukkitXOnly;
import cn.nukkit.api.Since;
import cn.nukkit.math.BlockVector3;
import cn.nukkit.network.protocol.types.LabTableReactionType;
import cn.nukkit.network.protocol.types.LabTableType;
import lombok.ToString;
@Since("1.19.30-r1")
@PowerNukkitXOnly
@ToString
public class LabTablePacket extends DataPacket {
public static final byte NETWORK_ID = ProtocolInfo.LAB_TABLE_PACKET;
public LabTableType actionType;
public BlockVector3 blockPosition;
public LabTableReactionType reactionType;
@Override
public byte pid() {
return NETWORK_ID;
}
@Override
public void decode() {
}
@Override
public void encode() {
this.reset();
this.putByte((byte) actionType.ordinal());
this.putBlockVector3(blockPosition);
this.putByte((byte) reactionType.ordinal());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy