mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 10:43:14 +00:00
Allow outside access of direct write for nbt blocks
This commit is contained in:
parent
0cd4997174
commit
3f5b799728
@ -82,7 +82,7 @@ public class DirectWorldWriter {
|
|||||||
return new File(worldFolder, "iris/mca-region/r." + x + "." + z + ".mca");
|
return new File(worldFolder, "iris/mca-region/r." + x + "." + z + ".mca");
|
||||||
}
|
}
|
||||||
|
|
||||||
public BlockData getBlockData(CompoundTag tag) {
|
public static BlockData getBlockData(CompoundTag tag) {
|
||||||
if (tag == null)
|
if (tag == null)
|
||||||
{
|
{
|
||||||
return B.getAir();
|
return B.getAir();
|
||||||
@ -114,7 +114,7 @@ public class DirectWorldWriter {
|
|||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|
||||||
public CompoundTag getCompound(BlockData blockData)
|
public static CompoundTag getCompound(BlockData blockData)
|
||||||
{
|
{
|
||||||
String data = blockData.getAsString(true);
|
String data = blockData.getAsString(true);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user