mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-18 03:25:07 +00:00
Some progress for block -> block
This commit is contained in:
1 parent
d112fd627f
commit
4399159661
4 files changed
+57
-37
No files matched your search
@@ -1,5 +1,8 @@
|
||||
package com.colen.postea;
|
||||
|
||||
import akka.japi.Pair;
|
||||
import com.colen.postea.API.BlockKey;
|
||||
import com.colen.postea.API.BlockReplacementManager;
|
||||
import com.colen.postea.API.ChunkFixerUtility;
|
||||
import com.colen.postea.API.TileEntityReplacementManager;
|
||||
import cpw.mods.fml.common.Mod;
|
||||
@@ -98,9 +101,12 @@ public class Postea {
|
||||
return new ChunkFixerUtility.BlockInfo(Blocks.chest, 0, chestTransformer);
|
||||
});
|
||||
|
||||
// TileEntityReplacementManager.tileEntityToNormalBlockTransformer("Chest", (tag) -> {
|
||||
// return new ChunkFixerUtility.BlockInfo(Blocks.coal_block, 0);
|
||||
// });
|
||||
Function<BlockKey, Pair<Integer, Integer>> blockTransformer = (blockKey) -> {
|
||||
return new Pair<>(7, 0);
|
||||
};
|
||||
|
||||
BlockReplacementManager.addBlockReplacement("grass", 0, blockTransformer);
|
||||
|
||||
}
|
||||
|
||||
private NBTTagCompound cleanseNBT(String newTileEntityID, NBTTagCompound tag) {
|
||||
|
||||
Reference in new issue
Block a user