Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump forge/mantle versions, restore waila integration
- Loading branch information
Showing
16 changed files
with
149 additions
and
193 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
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
minecraft_version=1.7.2 | ||
forge_version=10.12.0.1027 | ||
mantle_version=132.45b0b50 | ||
forge_version=10.12.1.1074 | ||
mantle_version=143.727db8b | ||
FMP_version=1.1.0.268 | ||
CCLIB_version=1.1.0.77 | ||
NEI_version=1.0.1 | ||
ccc_version=1.0.0 | ||
mod_version=1.6.0 | ||
waila_version=1.5.2a |
48 changes: 0 additions & 48 deletions
48
returning_eventually/waila/CastingChannelDataProvider.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
src/api/java/mcp/mobius/waila/api/IWailaConfigHandler.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
77 changes: 77 additions & 0 deletions
77
src/main/java/tconstruct/plugins/waila/CastingChannelDataProvider.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,77 @@ | ||
package tconstruct.plugins.waila; | ||
|
||
import java.util.List; | ||
|
||
import mcp.mobius.waila.api.IWailaConfigHandler; | ||
import mcp.mobius.waila.api.IWailaDataAccessor; | ||
import mcp.mobius.waila.api.IWailaDataProvider; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.util.StatCollector; | ||
import net.minecraftforge.common.util.ForgeDirection; | ||
import net.minecraftforge.fluids.FluidStack; | ||
import net.minecraftforge.fluids.FluidTankInfo; | ||
import tconstruct.blocks.logic.CastingChannelLogic; | ||
|
||
public class CastingChannelDataProvider implements IWailaDataProvider | ||
{ | ||
|
||
@Override | ||
public ItemStack getWailaStack (IWailaDataAccessor accessor, IWailaConfigHandler config) | ||
{ | ||
return null; | ||
} | ||
|
||
@Override | ||
public List<String> getWailaHead (ItemStack itemStack, List<String> currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config) | ||
{ | ||
return currenttip; | ||
} | ||
|
||
@Override | ||
public List<String> getWailaBody (ItemStack itemStack, List<String> currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config) | ||
{ | ||
if (accessor.getTileEntity() instanceof CastingChannelLogic) | ||
{ | ||
CastingChannelLogic te = (CastingChannelLogic) accessor.getTileEntity(); | ||
FluidTankInfo internalTank = te.getTankInfo(null)[0]; | ||
FluidTankInfo northTank = te.getTankInfo(ForgeDirection.NORTH)[0]; | ||
FluidTankInfo southTank = te.getTankInfo(ForgeDirection.SOUTH)[0]; | ||
FluidTankInfo westTank = te.getTankInfo(ForgeDirection.WEST)[0]; | ||
FluidTankInfo eastTank = te.getTankInfo(ForgeDirection.EAST)[0]; | ||
|
||
if (internalTank.fluid != null && internalTank.fluid.amount > 0) | ||
{ | ||
FluidStack fs = internalTank.fluid; | ||
currenttip.add(StatCollector.translateToLocal("tconstruct.waila.liquidtag") + WailaRegistrar.fluidNameHelper(fs)); | ||
currenttip.add(StatCollector.translateToLocal("tconstruct.waila.amounttag") + fs.amount + "/" + internalTank.capacity); | ||
} | ||
else | ||
{ | ||
currenttip.add("§o" + StatCollector.translateToLocal("tconstruct.waila.empty")); // "§o" == Italics | ||
} | ||
|
||
currenttip.add(StatCollector.translateToLocal("tconstruct.waila.subtanks")); | ||
String s1, s2, s3, s4; | ||
s1 = s2 = s3 = s4 = "§o" + StatCollector.translateToLocal("tconstruct.waila.empty"); | ||
|
||
if (northTank.fluid != null) | ||
s1 = northTank.fluid.amount + " / " + northTank.capacity; | ||
if (southTank.fluid != null) | ||
s2 = southTank.fluid.amount + " / " + southTank.capacity; | ||
if (westTank.fluid != null) | ||
s3 = westTank.fluid.amount + " / " + westTank.capacity; | ||
if (eastTank.fluid != null) | ||
s4 = eastTank.fluid.amount + " / " + eastTank.capacity; | ||
currenttip.add(s1 + "; " + s2 + "; " + s3 + "; " + s4); | ||
} | ||
|
||
return currenttip; | ||
} | ||
|
||
@Override | ||
public List<String> getWailaTail (ItemStack itemStack, List<String> currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config) | ||
{ | ||
return currenttip; | ||
} | ||
|
||
} |
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
Oops, something went wrong.