aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/TecTech-1.7.10-3.8.3.jar.REMOVED.git-id1
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/system/material/BW_MetaGeneratedBlocks_Casing.java13
2 files changed, 12 insertions, 2 deletions
diff --git a/libs/TecTech-1.7.10-3.8.3.jar.REMOVED.git-id b/libs/TecTech-1.7.10-3.8.3.jar.REMOVED.git-id
deleted file mode 100644
index 44e06955ea..0000000000
--- a/libs/TecTech-1.7.10-3.8.3.jar.REMOVED.git-id
+++ /dev/null
@@ -1 +0,0 @@
-cf867aabae89a4c11d9452678ee405ba22103922 \ No newline at end of file
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/system/material/BW_MetaGeneratedBlocks_Casing.java b/src/main/java/com/github/bartimaeusnek/bartworks/system/material/BW_MetaGeneratedBlocks_Casing.java
index a1738fca46..a688664efd 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/system/material/BW_MetaGeneratedBlocks_Casing.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/system/material/BW_MetaGeneratedBlocks_Casing.java
@@ -1,5 +1,6 @@
package com.github.bartimaeusnek.bartworks.system.material;
+import com.github.technus.tectech.mechanics.structure.ICustomMetaBlock;
import gregtech.api.GregTech_API;
import gregtech.api.enums.OrePrefixes;
import gregtech.api.util.GT_LanguageManager;
@@ -16,7 +17,8 @@ import net.minecraft.world.World;
import java.util.List;
import java.util.Optional;
-public class BW_MetaGeneratedBlocks_Casing extends BW_MetaGenerated_Blocks {
+@cpw.mods.fml.common.Optional.Interface(modid = "tectech", striprefs = true, iface = "com.github.technus.tectech.mechanics.structure.ICustomMetaBlock")
+public class BW_MetaGeneratedBlocks_Casing extends BW_MetaGenerated_Blocks implements ICustomMetaBlock {
public BW_MetaGeneratedBlocks_Casing(Material p_i45386_1_, Class<? extends TileEntity> tileEntity, String blockName, OrePrefixes prefixes) {
super(p_i45386_1_, tileEntity, blockName, prefixes);
@@ -96,4 +98,13 @@ public class BW_MetaGeneratedBlocks_Casing extends BW_MetaGenerated_Blocks {
.map(pMaterial -> new ItemStack(aItem, 1, pMaterial.getmID()))
.forEach(aList::add);
}
+
+ @cpw.mods.fml.common.Optional.Method(modid = "tectech")
+ public void setBlock(World world, int x, int y, int z, int meta) {
+ world.setBlock(x, y, z,this, meta,2);
+ Optional.ofNullable(world.getTileEntity(x,y,z))
+ .filter(te -> te instanceof BW_MetaGeneratedBlocks_Casing_TE)
+ .map(te -> (BW_MetaGeneratedBlocks_Casing_TE) te)
+ .ifPresent(te -> te.mMetaData = (short) meta);
+ }
}