From f31b91d655b07a4119edac1d1559f9251d24d02c Mon Sep 17 00:00:00 2001 From: asiekierka Date: Sat, 7 Mar 2015 14:40:27 +0100 Subject: [PATCH] document IDebuggable API, make chutes cheaper to make them comparable to hoppers more --- api/buildcraft/api/tiles/IDebuggable.java | 15 +++++++++++++++ api/buildcraft/api/tiles/package-info.java | 2 +- common/buildcraft/BuildCraftFactory.java | 3 +-- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/api/buildcraft/api/tiles/IDebuggable.java b/api/buildcraft/api/tiles/IDebuggable.java index b20b4f39..d402ba16 100644 --- a/api/buildcraft/api/tiles/IDebuggable.java +++ b/api/buildcraft/api/tiles/IDebuggable.java @@ -5,6 +5,21 @@ import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraftforge.common.util.ForgeDirection; +/** + * I would like to ask that this interface is not called by any + * non-Creative Mode-only item, and especially not computer mods. + * This is because often, the debug information can and will let you + * "cheat", similar to how F3 gives you debug information about + * Minecraft's inner engine workings. + */ public interface IDebuggable { + /** + * Get the debug information from a tile entity as a list of strings, + * usable with the BuildCraft Debugger. + * @param info The List debug strings should be output to. + * @param side The side of the tile. + * @param debugger The debugger ItemStack used. + * @param player The player querying the debug information. + */ void getDebugInfo(List info, ForgeDirection side, ItemStack debugger, EntityPlayer player); } diff --git a/api/buildcraft/api/tiles/package-info.java b/api/buildcraft/api/tiles/package-info.java index e436f5c9..a9680a1b 100644 --- a/api/buildcraft/api/tiles/package-info.java +++ b/api/buildcraft/api/tiles/package-info.java @@ -6,7 +6,7 @@ * Please check the contents of the license, which should be located * as "LICENSE.API" in the BuildCraft source code distribution. */ -@API(apiVersion = "1.1", owner = "BuildCraftAPI|core", provides = "BuildCraftAPI|tiles") +@API(apiVersion = "1.2", owner = "BuildCraftAPI|core", provides = "BuildCraftAPI|tiles") package buildcraft.api.tiles; import cpw.mods.fml.common.API; diff --git a/common/buildcraft/BuildCraftFactory.java b/common/buildcraft/BuildCraftFactory.java index ef56f09b..8e4e051c 100644 --- a/common/buildcraft/BuildCraftFactory.java +++ b/common/buildcraft/BuildCraftFactory.java @@ -323,8 +323,7 @@ public class BuildCraftFactory extends BuildCraftMod { if (hopperBlock != null) { CoreProxy.proxy.addCraftingRecipe(new ItemStack(hopperBlock), "ICI", - "IGI", - " I ", + " G ", 'I', "ingotIron", 'C', Blocks.chest, 'G', "gearStone");