-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config option to show all Ender IO powered spwner variants in NEI (…
…#27)
- Loading branch information
Showing
6 changed files
with
58 additions
and
20 deletions.
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
16 changes: 16 additions & 0 deletions
16
src/main/java/com/kuba6000/mobsinfo/mixin/EnderIO/BlockPoweredSpawnerAccessor.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,16 @@ | ||
package com.kuba6000.mobsinfo.mixin.EnderIO; | ||
|
||
import net.minecraft.item.ItemStack; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Invoker; | ||
|
||
import crazypants.enderio.machine.spawner.BlockPoweredSpawner; | ||
|
||
@Mixin(value = BlockPoweredSpawner.class, remap = false) | ||
public interface BlockPoweredSpawnerAccessor { | ||
|
||
@Invoker | ||
ItemStack callCreateItemStackForMob(String mob); | ||
|
||
} |
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
19 changes: 19 additions & 0 deletions
19
src/main/java/com/kuba6000/mobsinfo/nei/EnderIOGetter.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,19 @@ | ||
package com.kuba6000.mobsinfo.nei; | ||
|
||
import net.minecraft.block.Block; | ||
import net.minecraft.item.ItemStack; | ||
|
||
import com.kuba6000.mobsinfo.mixin.EnderIO.BlockPoweredSpawnerAccessor; | ||
|
||
import crazypants.enderio.EnderIO; | ||
|
||
class EnderIOGetter { | ||
|
||
public static Block blockPoweredSpawner() { | ||
return EnderIO.blockPoweredSpawner; | ||
} | ||
|
||
public static ItemStack BlockPoweredSpawner$createItemStackForMob(String type) { | ||
return ((BlockPoweredSpawnerAccessor) EnderIO.blockPoweredSpawner).callCreateItemStackForMob(type); | ||
} | ||
} |
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