use of com.nukkitx.protocol.bedrock.data.structure.StructureEditorData in project Protocol by CloudburstMC.
the class StructureBlockUpdateSerializer_v361 method readEditorData.
protected StructureEditorData readEditorData(ByteBuf buffer, BedrockPacketHelper helper) {
String name = helper.readString(buffer);
String dataField = helper.readString(buffer);
boolean includingPlayers = buffer.readBoolean();
boolean boundingBoxVisible = buffer.readBoolean();
StructureBlockType type = StructureBlockType.from(VarInts.readInt(buffer));
StructureSettings settings = helper.readStructureSettings(buffer);
return new StructureEditorData(name, dataField, includingPlayers, boundingBoxVisible, type, settings, StructureRedstoneSaveMode.SAVES_TO_DISK);
}
use of com.nukkitx.protocol.bedrock.data.structure.StructureEditorData in project Protocol by CloudburstMC.
the class StructureBlockUpdateSerializer_v388 method readEditorData.
@Override
protected StructureEditorData readEditorData(ByteBuf buffer, BedrockPacketHelper helper) {
String name = helper.readString(buffer);
String dataField = helper.readString(buffer);
boolean includingPlayers = buffer.readBoolean();
boolean boundingBoxVisible = buffer.readBoolean();
StructureBlockType type = StructureBlockType.from(VarInts.readInt(buffer));
StructureSettings settings = helper.readStructureSettings(buffer);
StructureRedstoneSaveMode redstoneSaveMode = StructureRedstoneSaveMode.from(VarInts.readInt(buffer));
return new StructureEditorData(name, dataField, includingPlayers, boundingBoxVisible, type, settings, redstoneSaveMode);
}
Aggregations