mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 15:03:03 +00:00
Fixced up some buildcraft stuff and added trigger icons.
This commit is contained in:
1 parent
722875be25
commit
5824990a89
14 files changed
+32
-13
No files matched your search
@@ -20,6 +20,7 @@ import net.minecraft.init.Blocks;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.world.World;
|
||||
@@ -156,4 +157,9 @@ public class DummyMethodHandler implements IInternalMethodHandler {
|
||||
// NO-OP
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isBuildcraftPipe(TileEntity tile) {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -19,6 +19,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.world.World;
|
||||
@@ -90,6 +91,8 @@ public interface IInternalMethodHandler {
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void setBossStatus(IBotaniaBoss status);
|
||||
|
||||
public boolean isBuildcraftPipe(TileEntity tile);
|
||||
|
||||
public void sparkleFX(World world, double x, double y, double z, float r, float g, float b, float size, int m);
|
||||
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
@API(owner = "Botania", apiVersion = "21", provides = "BotaniaAPI")
|
||||
@API(owner = "Botania", apiVersion = "22", provides = "BotaniaAPI")
|
||||
package vazkii.botania.api;
|
||||
import cpw.mods.fml.common.API;
|
||||
|
||||
@@ -13,6 +13,7 @@ package vazkii.botania.common.core.handler;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import cpw.mods.fml.common.Optional;
|
||||
import net.minecraft.client.gui.ScaledResolution;
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
@@ -20,6 +21,7 @@ import net.minecraft.init.Blocks;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.crafting.IRecipe;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.IIcon;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.world.World;
|
||||
@@ -46,6 +48,7 @@ import vazkii.botania.common.lexicon.page.PagePetalRecipe;
|
||||
import vazkii.botania.common.lexicon.page.PageRuneRecipe;
|
||||
import vazkii.botania.common.lexicon.page.PageText;
|
||||
import baubles.common.lib.PlayerHandler;
|
||||
import buildcraft.api.transport.IPipeTile;
|
||||
|
||||
public class InternalMethodHandler extends DummyMethodHandler {
|
||||
|
||||
@@ -173,4 +176,9 @@ public class InternalMethodHandler extends DummyMethodHandler {
|
||||
return ConfigHandler.hardcorePassiveGeneration;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Optional.Method(modid = "BuildCraft|Transport")
|
||||
public boolean isBuildcraftPipe(TileEntity tile) {
|
||||
return tile instanceof IPipeTile;
|
||||
}
|
||||
}
|
||||
@@ -35,6 +35,7 @@ import net.minecraft.util.MathHelper;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.World;
|
||||
import vazkii.botania.api.BotaniaAPI;
|
||||
import vazkii.botania.api.internal.IManaBurst;
|
||||
import vazkii.botania.api.mana.IClientManaHandler;
|
||||
import vazkii.botania.api.mana.ILensEffect;
|
||||
@@ -549,7 +550,7 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst {
|
||||
if(tile instanceof IManaCollisionGhost && ((IManaCollisionGhost) tile).isGhost() || block instanceof BlockBush || block instanceof BlockLeaves)
|
||||
return;
|
||||
|
||||
if(tile instanceof IPipeTile) // BuildCeaft pipe compat
|
||||
if(BotaniaAPI.internalHandler.isBuildcraftPipe(tile))
|
||||
return;
|
||||
|
||||
ChunkCoordinates coords = getBurstSourceChunkCoordinates();
|
||||
|
||||
@@ -15,6 +15,7 @@ import buildcraft.api.statements.ITriggerProvider;
|
||||
import buildcraft.api.statements.StatementManager;
|
||||
|
||||
public class StatementAPIPlugin implements ITriggerProvider {
|
||||
|
||||
public static final ITriggerExternal triggerManaEmpty = new TriggerManaLevel(TriggerManaLevel.State.EMPTY);
|
||||
public static final ITriggerExternal triggerManaContains = new TriggerManaLevel(TriggerManaLevel.State.CONTAINS);
|
||||
public static final ITriggerExternal triggerManaSpace = new TriggerManaLevel(TriggerManaLevel.State.SPACE);
|
||||
|
||||
@@ -650,7 +650,7 @@ public final class LexiconData {
|
||||
|
||||
if(Botania.bcTriggersLoaded) {
|
||||
bcIntegration = new BLexiconEntry(LibLexicon.MISC_BC_INTEGRATION, categoryMisc);
|
||||
bcIntegration.setLexiconPages(new PageText("0"), new PageText("1"));
|
||||
bcIntegration.setLexiconPages(new PageText("0"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -70,6 +70,14 @@ botania.nei.manaPool=Mana Infusion
|
||||
botania.nei.petalApothecary=Petal Apothecary
|
||||
botania.nei.runicAltar=Runic Altar
|
||||
|
||||
# BUILDCRAFT INTEGRATION
|
||||
botania.trigger.manaDetector=Mana Burst
|
||||
botania.trigger.manaEmpty=Mana Empty
|
||||
botania.trigger.manaSpace=Space for Mana
|
||||
botania.trigger.manaContains=Contains Mana
|
||||
botania.trigger.manaFull=Mana Full
|
||||
botania.trigger.runeAltarCanCraft=Altar Can Craft
|
||||
|
||||
# COLORS
|
||||
botania.color0=White
|
||||
botania.color1=Orange
|
||||
@@ -1708,14 +1716,6 @@ botania.page.tcIntegration3=Carrying on, &4Mana&0 can also serve as an interesti
|
||||
botania.page.tcIntegration4=Making the &1Botanurgist's Inkwell
|
||||
botania.page.tcIntegration5=Last but not least, there's a few varied resources or constructs that can work as paraphernalia for an &1Infusion Altar&0, to lower its' instability.<br>These come in the form of &1Glimmering Flowers, Floating Flowers and any variety of Pylons&0.
|
||||
|
||||
# -- BUILDCRAFT TRIGGER API INTEGRATION
|
||||
# -- BUILDCRAFT INTEGRATION
|
||||
botania.entry.bcIntegration=Buildcraft Integration
|
||||
botania.page.bcIntegration0=Recent advances in piping technology have allowed &1Gates&0 to get a feel of the &4Mana&0 around them.<br>A &1Gate&0 can now sense whether a &4Mana&0 container is empty, full or if it contains any mana.
|
||||
botania.page.bcIntegration1=&1Gates&0 can also use the &1Mana Detector&0 trigger to detect if a mana is passing by the pipe block.<br>In addition, they can also sense when a &1Runic Altar&0 is ready to create &4Runes&0.
|
||||
botania.trigger.manaDetector=Mana Burst
|
||||
botania.trigger.manaEmpty=Mana Empty
|
||||
botania.trigger.manaSpace=Space for Mana
|
||||
botania.trigger.manaContains=Contains Mana
|
||||
botania.trigger.manaFull=Mana Full
|
||||
botania.trigger.runeAltarCanCraft=Altar Can Craft
|
||||
|
||||
botania.page.bcIntegration0=Recent advances in piping technology have allowed &1Gates&0 to get a feel of the &4Mana&0 around them. A &1Gate&0 can now sense whether a &4Mana&0 container is empty, full or if it contains any mana.<br>&1Gates&0 can also use the &1Mana Detector&0 trigger to detect if a mana is passing by the pipe block. In addition, they can also sense when a &1Runic Altar&0 is ready to create runes.
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.2 KiB |
Reference in new issue
Block a user