mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-19 03:49:05 +00:00
Refactor
This commit is contained in:
1 parent
52e3e7a3f1
commit
036452b944
2 files changed
+15
-9
No files matched your search
@@ -22,13 +22,13 @@ public class Postea {
|
||||
// BlockReplacementManager.addBlockReplacement(GregTech_API.sBlockOres1, 1018, Blocks.end_stone, 0);
|
||||
|
||||
// Define the transformation function
|
||||
Function<NBTTagCompound, NBTTagCompound> myTransformer = (tag) -> {
|
||||
/* Function<NBTTagCompound, NBTTagCompound> myTransformer = (tag) -> {
|
||||
if (tag.getInteger("m") == 86) {
|
||||
tag.setInteger("m", 323);
|
||||
return tag;
|
||||
}
|
||||
return tag;
|
||||
};
|
||||
};*/
|
||||
|
||||
//TileEntityReplacementManager.tileEntityFixer("GT_TileEntity_Ores", myTransformer);
|
||||
TileEntityReplacementManager.tileEntityToNormalBlockTransformer("GT_TileEntity_Ores", (tag) -> {
|
||||
@@ -38,6 +38,14 @@ public class Postea {
|
||||
|
||||
return new ChunkFixerUtility.BlockInfo(Blocks.wool, 1);
|
||||
});
|
||||
|
||||
TileEntityReplacementManager.tileEntityToNormalBlockTransformer("Furnace", (tag) -> {
|
||||
return new ChunkFixerUtility.BlockInfo(Blocks.planks, 3);
|
||||
});
|
||||
|
||||
TileEntityReplacementManager.tileEntityToNormalBlockTransformer("Chest", (tag) -> {
|
||||
return new ChunkFixerUtility.BlockInfo(Blocks.coal_block, 0);
|
||||
});
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
|
||||
Reference in new issue
Block a user