-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
720a593
commit 28372e7
Showing
5 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/supersymmetry/mixins/yungs/MixinSideRoom.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package supersymmetry.mixins.yungs; | ||
|
||
import com.yungnickyoung.minecraft.bettermineshafts.world.generator.pieces.MineshaftPiece; | ||
import com.yungnickyoung.minecraft.bettermineshafts.world.generator.pieces.SideRoom; | ||
import net.minecraft.block.BlockFurnace; | ||
import net.minecraft.block.state.IBlockState; | ||
import net.minecraft.world.World; | ||
import net.minecraft.world.gen.structure.StructureBoundingBox; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Redirect; | ||
|
||
@Mixin(SideRoom.class) | ||
public abstract class MixinSideRoom extends MineshaftPiece { | ||
|
||
@Redirect(method = "addComponentParts", at = @At(value = "INVOKE", target = "Lcom/yungnickyoung/minecraft/bettermineshafts/world/generator/pieces/SideRoom;setBlockState(Lnet/minecraft/world/World;Lnet/minecraft/block/state/IBlockState;IIILnet/minecraft/world/gen/structure/StructureBoundingBox;)V")) | ||
private void susycore$removeFurnace(SideRoom instance, World world, IBlockState iBlockState, int i1, int i2, int i3, StructureBoundingBox structureBoundingBox) { | ||
if (iBlockState.getBlock() instanceof BlockFurnace) { | ||
setBlockState(world, AIR, i1, i2, i3, structureBoundingBox); | ||
} | ||
} | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
src/main/java/supersymmetry/mixins/yungs/MixinZombieVillagerRoom.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package supersymmetry.mixins.yungs; | ||
|
||
import com.yungnickyoung.minecraft.bettermineshafts.world.generator.pieces.MineshaftPiece; | ||
import com.yungnickyoung.minecraft.bettermineshafts.world.generator.pieces.ZombieVillagerRoom; | ||
import net.minecraft.block.BlockFurnace; | ||
import net.minecraft.block.state.IBlockState; | ||
import net.minecraft.world.World; | ||
import net.minecraft.world.gen.structure.StructureBoundingBox; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Redirect; | ||
|
||
@Mixin(ZombieVillagerRoom.class) | ||
public abstract class MixinZombieVillagerRoom extends MineshaftPiece { | ||
|
||
@Redirect(method = "addComponentParts", at = @At(value = "INVOKE", target = "Lcom/yungnickyoung/minecraft/bettermineshafts/world/generator/pieces/ZombieVillagerRoom;setBlockState(Lnet/minecraft/world/World;Lnet/minecraft/block/state/IBlockState;IIILnet/minecraft/world/gen/structure/StructureBoundingBox;)V")) | ||
private void susycore$removeFurnace(ZombieVillagerRoom instance, World world, IBlockState iBlockState, int i1, int i2, int i3, StructureBoundingBox structureBoundingBox) { | ||
if (iBlockState.getBlock() instanceof BlockFurnace) { | ||
setBlockState(world, AIR, i1, i2, i3, structureBoundingBox); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"package" : "supersymmetry.mixins.yungs", | ||
"refmap" : "mixins.susy.refmap.json", | ||
"target" : "@env(DEFAULT)", | ||
"minVersion" : "0.8", | ||
"compatibilityLevel" : "JAVA_8", | ||
"mixins" : [ | ||
"MixinSideRoom", | ||
"MixinZombieVillagerRoom" | ||
] | ||
} |