mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-27 15:23:16 +00:00
Fix some mod integrations not working.
Moved all mod id definitions to a constant value in MekanismHooks. Fix integration with ComputerCraft, OpenComputers and IC2. Fix #4603
This commit is contained in:
1 parent
7e43e1a628
commit
2e38fb9748
23 files changed
+169
-150
No files matched your search
@@ -27,10 +27,10 @@ import net.minecraft.world.World;
|
||||
import net.minecraftforge.fml.common.Optional.Interface;
|
||||
import net.minecraftforge.fml.common.Optional.Method;
|
||||
|
||||
@Interface(iface = "mcp.mobius.waila.api.IWailaDataProvider", modid = "Waila")
|
||||
@Interface(iface = "mcp.mobius.waila.api.IWailaDataProvider", modid = MekanismHooks.WAILA_MOD_ID)
|
||||
public class WailaDataProvider implements IWailaDataProvider
|
||||
{
|
||||
@Method(modid = "Waila")
|
||||
@Method(modid = MekanismHooks.WAILA_MOD_ID)
|
||||
public static void register(IWailaRegistrar registrar)
|
||||
{
|
||||
WailaDataProvider provider = new WailaDataProvider();
|
||||
@@ -47,14 +47,14 @@ public class WailaDataProvider implements IWailaDataProvider
|
||||
}
|
||||
|
||||
@Override
|
||||
@Method(modid = "Waila")
|
||||
@Method(modid = MekanismHooks.WAILA_MOD_ID)
|
||||
public ItemStack getWailaStack(IWailaDataAccessor accessor, IWailaConfigHandler config)
|
||||
{
|
||||
return ItemStack.EMPTY;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Method(modid = "Waila")
|
||||
@Method(modid = MekanismHooks.WAILA_MOD_ID)
|
||||
public List<String> getWailaHead(ItemStack itemStack, List<String> currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config)
|
||||
{
|
||||
TileEntity tile = accessor.getTileEntity();
|
||||
@@ -102,21 +102,21 @@ public class WailaDataProvider implements IWailaDataProvider
|
||||
}
|
||||
|
||||
@Override
|
||||
@Method(modid = "Waila")
|
||||
@Method(modid = MekanismHooks.WAILA_MOD_ID)
|
||||
public List<String> getWailaBody(ItemStack itemStack, List<String> currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config)
|
||||
{
|
||||
return currenttip;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Method(modid = "Waila")
|
||||
@Method(modid = MekanismHooks.WAILA_MOD_ID)
|
||||
public List<String> getWailaTail(ItemStack itemStack, List<String> currenttip, IWailaDataAccessor accessor, IWailaConfigHandler config)
|
||||
{
|
||||
return currenttip;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Method(modid = "Waila")
|
||||
@Method(modid = MekanismHooks.WAILA_MOD_ID)
|
||||
public NBTTagCompound getNBTData(EntityPlayerMP player, TileEntity te, NBTTagCompound tag, World world, BlockPos pos)
|
||||
{
|
||||
return tag;
|
||||
|
||||
Reference in new issue
Block a user