-
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
Showing
33 changed files
with
127 additions
and
49 deletions.
There are no files selected for viewing
13 changes: 0 additions & 13 deletions
13
src/main/java/supersymmetry/api/integration/theoneprobe/TheOneProbeCompatibility.java
This file was deleted.
Oops, something went wrong.
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
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
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
29 changes: 29 additions & 0 deletions
29
src/main/java/supersymmetry/integration/theoneprobe/TheOneProbeModule.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,29 @@ | ||
package supersymmetry.integration.theoneprobe; | ||
|
||
import gregtech.api.modules.GregTechModule; | ||
import gregtech.api.util.Mods; | ||
import gregtech.integration.IntegrationSubmodule; | ||
import mcjty.theoneprobe.TheOneProbe; | ||
import mcjty.theoneprobe.api.ITheOneProbe; | ||
import net.minecraftforge.fml.common.event.FMLInitializationEvent; | ||
import supersymmetry.Supersymmetry; | ||
import supersymmetry.integration.theoneprobe.provider.DelegatorInfoProvider; | ||
import supersymmetry.integration.theoneprobe.provider.EvaporationPoolInfoProvider; | ||
import supersymmetry.modules.SuSyModules; | ||
|
||
@GregTechModule( | ||
moduleID = SuSyModules.MODULE_TOP, | ||
containerID = Supersymmetry.MODID, | ||
modDependencies = Mods.Names.THE_ONE_PROBE, | ||
name = "SuSy TheOneProbe Integration", | ||
description = "SuSy TheOneProbe Integration Module") | ||
public class TheOneProbeModule extends IntegrationSubmodule { | ||
|
||
@Override | ||
public void init(FMLInitializationEvent event) { | ||
getLogger().info("TheOneProbe found. Enabling SuSy top integration..."); | ||
ITheOneProbe oneProbe = TheOneProbe.theOneProbeImp; | ||
oneProbe.registerProvider(new EvaporationPoolInfoProvider()); | ||
oneProbe.registerProvider(new DelegatorInfoProvider()); | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
src/main/java/supersymmetry/integration/theoneprobe/provider/DelegatorInfoProvider.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,38 @@ | ||
package supersymmetry.integration.theoneprobe.provider; | ||
|
||
import gregtech.api.metatileentity.MetaTileEntity; | ||
import gregtech.api.metatileentity.interfaces.IGregTechTileEntity; | ||
import mcjty.theoneprobe.api.IProbeHitData; | ||
import mcjty.theoneprobe.api.IProbeInfo; | ||
import mcjty.theoneprobe.api.IProbeInfoProvider; | ||
import mcjty.theoneprobe.api.ProbeMode; | ||
import net.minecraft.block.state.IBlockState; | ||
import net.minecraft.client.resources.I18n; | ||
import net.minecraft.entity.player.EntityPlayer; | ||
import net.minecraft.tileentity.TileEntity; | ||
import net.minecraft.world.World; | ||
import supersymmetry.Supersymmetry; | ||
import supersymmetry.api.metatileentity.logistics.IDelegator; | ||
|
||
public class DelegatorInfoProvider implements IProbeInfoProvider { | ||
|
||
@Override | ||
public String getID() { | ||
return Supersymmetry.MODID + ":delegator_info_provider"; | ||
} | ||
|
||
@Override | ||
public void addProbeInfo(ProbeMode mode, IProbeInfo probeInfo, EntityPlayer player, World world, IBlockState state, | ||
IProbeHitData data) { | ||
if (state.getBlock().hasTileEntity(state)) { | ||
TileEntity te = world.getTileEntity(data.getPos()); | ||
if (te instanceof IGregTechTileEntity igtte) { | ||
MetaTileEntity mte = igtte.getMetaTileEntity(); | ||
if (mte instanceof IDelegator delegator) { | ||
probeInfo.text(I18n.format("gregtech.top.delegator.delegating_face", | ||
delegator.getDelegatingFacing(data.getSideHit()))); | ||
} | ||
} | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...egration/EvaporationPoolInfoProvider.java → ...provider/EvaporationPoolInfoProvider.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
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
Binary file modified
BIN
+1.41 KB
(450%)
...main/resources/assets/gregtech/textures/blocks/logistics/bridges/inv/bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.41 KB
(450%)
src/main/resources/assets/gregtech/textures/blocks/logistics/bridges/inv/side.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.41 KB
(450%)
src/main/resources/assets/gregtech/textures/blocks/logistics/bridges/inv/top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.21 KB
(390%)
...resources/assets/gregtech/textures/blocks/logistics/bridges/inv_tank/bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.21 KB
(390%)
...n/resources/assets/gregtech/textures/blocks/logistics/bridges/inv_tank/side.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.21 KB
(390%)
...in/resources/assets/gregtech/textures/blocks/logistics/bridges/inv_tank/top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.25 KB
(440%)
...ain/resources/assets/gregtech/textures/blocks/logistics/bridges/tank/bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.25 KB
(440%)
src/main/resources/assets/gregtech/textures/blocks/logistics/bridges/tank/side.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.25 KB
(440%)
src/main/resources/assets/gregtech/textures/blocks/logistics/bridges/tank/top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.25 KB
(410%)
...esources/assets/gregtech/textures/blocks/logistics/bridges/universal/bottom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.25 KB
(410%)
.../resources/assets/gregtech/textures/blocks/logistics/bridges/universal/side.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.25 KB
(410%)
...n/resources/assets/gregtech/textures/blocks/logistics/bridges/universal/top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.41 KB
(450%)
src/main/resources/assets/gregtech/textures/blocks/logistics/extenders/inv/in.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.42 KB
(510%)
src/main/resources/assets/gregtech/textures/blocks/logistics/extenders/inv/out.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.21 KB
(390%)
...n/resources/assets/gregtech/textures/blocks/logistics/extenders/inv_tank/in.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.2 KB
(430%)
.../resources/assets/gregtech/textures/blocks/logistics/extenders/inv_tank/out.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.25 KB
(440%)
src/main/resources/assets/gregtech/textures/blocks/logistics/extenders/tank/in.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.24 KB
(430%)
...main/resources/assets/gregtech/textures/blocks/logistics/extenders/tank/out.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.25 KB
(410%)
.../resources/assets/gregtech/textures/blocks/logistics/extenders/universal/in.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.25 KB
(400%)
...resources/assets/gregtech/textures/blocks/logistics/extenders/universal/out.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.23 KB
(740%)
...esources/assets/gregtech/textures/blocks/logistics/extenders/universal/side.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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