use of com.nukkitx.protocol.bedrock.data.structure.StructureRedstoneSaveMode 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