mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-27 07:13:14 +00:00
* disable blood frame recipe * Nuking the Blood Frame * bs+sa --------- Co-authored-by: Alastors <[email protected]>
55 lines
1.8 KiB
Java
55 lines
1.8 KiB
Java
package WayofTime.alchemicalWizardry.compat;
|
|
|
|
import java.util.List;
|
|
|
|
import net.minecraft.entity.player.EntityPlayerMP;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.nbt.NBTTagCompound;
|
|
import net.minecraft.tileentity.TileEntity;
|
|
import net.minecraft.world.World;
|
|
|
|
import mcp.mobius.waila.api.IWailaConfigHandler;
|
|
import mcp.mobius.waila.api.IWailaDataAccessor;
|
|
import mcp.mobius.waila.api.IWailaDataProvider;
|
|
|
|
public class BloodMagicWailaProvider 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) {
|
|
final TileEntity tile = accessor.getTileEntity();
|
|
if (tile instanceof IBloodMagicWailaProvider) {
|
|
((IBloodMagicWailaProvider) tile).getWailaBody(itemStack, currenttip, accessor, config);
|
|
}
|
|
|
|
return currenttip;
|
|
}
|
|
|
|
@Override
|
|
public List<String> getWailaTail(ItemStack itemStack, List<String> currenttip, IWailaDataAccessor accessor,
|
|
IWailaConfigHandler config) {
|
|
return currenttip;
|
|
}
|
|
|
|
@Override
|
|
public NBTTagCompound getNBTData(EntityPlayerMP player, TileEntity tile, NBTTagCompound tag, World world, int x,
|
|
int y, int z) {
|
|
if (tile instanceof IBloodMagicWailaProvider) {
|
|
((IBloodMagicWailaProvider) tile).getWailaNBTData(player, tile, tag, world, x, y, z);
|
|
}
|
|
|
|
return tag;
|
|
}
|
|
}
|