minor blockStateWrapper reformat

This commit is contained in:
James Seibel
2023-02-13 20:27:06 -06:00
parent 4442fda70a
commit fdcbbae3b1
@@ -37,12 +37,15 @@ public class BlockStateWrapper implements IBlockStateWrapper
}
@Override
public String serialize() {
if (blockState == null) {
return "AIR";
}
return BlockState.CODEC.encodeStart(JsonOps.COMPRESSED, blockState).get().orThrow().toString();
}
public String serialize()
{
if (this.blockState == null)
{
return "AIR";
}
return BlockState.CODEC.encodeStart(JsonOps.COMPRESSED, this.blockState).get().orThrow().toString();
}
public static BlockStateWrapper deserialize(String str) throws IOException {
if (str.equals("AIR")) {