BuildCraft 7.0.23
This commit is contained in:
parent
db91628dfc
commit
3d2cb3e207
10 changed files with 23 additions and 25 deletions
|
@ -6,7 +6,7 @@
|
||||||
* Please check the contents of the license, which should be located
|
* Please check the contents of the license, which should be located
|
||||||
* as "LICENSE.API" in the BuildCraft source code distribution.
|
* as "LICENSE.API" in the BuildCraft source code distribution.
|
||||||
*/
|
*/
|
||||||
@API(apiVersion = "1.3", owner = "BuildCraftAPI|core", provides = "BuildCraftAPI|blueprints")
|
@API(apiVersion = "1.4", owner = "BuildCraftAPI|core", provides = "BuildCraftAPI|blueprints")
|
||||||
package buildcraft.api.blueprints;
|
package buildcraft.api.blueprints;
|
||||||
import cpw.mods.fml.common.API;
|
import cpw.mods.fml.common.API;
|
||||||
|
|
||||||
|
|
|
@ -8,10 +8,9 @@
|
||||||
*/
|
*/
|
||||||
package buildcraft.api.robots;
|
package buildcraft.api.robots;
|
||||||
|
|
||||||
import net.minecraft.inventory.ISidedInventory;
|
import net.minecraft.inventory.IInventory;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
import net.minecraftforge.common.util.ForgeDirection;
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
import net.minecraftforge.fluids.IFluidHandler;
|
import net.minecraftforge.fluids.IFluidHandler;
|
||||||
|
|
||||||
|
@ -189,7 +188,7 @@ public abstract class DockingStation {
|
||||||
return ForgeDirection.UNKNOWN;
|
return ForgeDirection.UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ISidedInventory getItemInput() {
|
public IInventory getItemInput() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* Please check the contents of the license, which should be located
|
* Please check the contents of the license, which should be located
|
||||||
* as "LICENSE.API" in the BuildCraft source code distribution.
|
* as "LICENSE.API" in the BuildCraft source code distribution.
|
||||||
*/
|
*/
|
||||||
@API(apiVersion = "2.1", owner = "BuildCraftAPI|core", provides = "BuildCraftAPI|robotics")
|
@API(apiVersion = "3.0", owner = "BuildCraftAPI|core", provides = "BuildCraftAPI|robotics")
|
||||||
package buildcraft.api.robots;
|
package buildcraft.api.robots;
|
||||||
import cpw.mods.fml.common.API;
|
import cpw.mods.fml.common.API;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
|
* Rewritten robots request system (hea3ven)
|
||||||
|
* Changed the IRequestProvider api to be independent of robots.
|
||||||
|
* Delivery robots can now carry more than an item at a time.
|
||||||
|
* Builders, requesters and docking stations can now request more than one item at a time.
|
||||||
* Architect Tables are less server-intensive now (asie)
|
* Architect Tables are less server-intensive now (asie)
|
||||||
* More Ore Dictionary support for recipes (Adaptivity)
|
* More Ore Dictionary support for recipes (Adaptivity)
|
||||||
|
* Proper Docking Station renderer (asie)
|
||||||
|
|
||||||
Bugs fixed:
|
Bugs fixed:
|
||||||
|
|
||||||
|
@ -11,3 +16,5 @@ Bugs fixed:
|
||||||
* [#2922, #2975] Composite blueprints not working (asie)
|
* [#2922, #2975] Composite blueprints not working (asie)
|
||||||
* [#2565] Fillers not liking certain blocks (asie)
|
* [#2565] Fillers not liking certain blocks (asie)
|
||||||
* Fillers and Builders not dropping item on inability to place (asie)
|
* Fillers and Builders not dropping item on inability to place (asie)
|
||||||
|
* Quarry arm jitter on client side (asie)
|
||||||
|
* Robots not using the correct sides when accessing inventories/tanks (hea3ven)
|
||||||
|
|
|
@ -53,7 +53,6 @@ import buildcraft.core.Version;
|
||||||
import buildcraft.core.config.ConfigManager;
|
import buildcraft.core.config.ConfigManager;
|
||||||
import buildcraft.core.network.EntityIds;
|
import buildcraft.core.network.EntityIds;
|
||||||
import buildcraft.core.proxy.CoreProxy;
|
import buildcraft.core.proxy.CoreProxy;
|
||||||
import buildcraft.core.statements.StatementParameterItemStackExact;
|
|
||||||
import buildcraft.robotics.BlockRequester;
|
import buildcraft.robotics.BlockRequester;
|
||||||
import buildcraft.robotics.BlockZonePlan;
|
import buildcraft.robotics.BlockZonePlan;
|
||||||
import buildcraft.robotics.BoardProgrammingRecipe;
|
import buildcraft.robotics.BoardProgrammingRecipe;
|
||||||
|
|
|
@ -23,9 +23,7 @@ import net.minecraft.nbt.NBTTagList;
|
||||||
import net.minecraft.tileentity.TileEntity;
|
import net.minecraft.tileentity.TileEntity;
|
||||||
import net.minecraft.util.AxisAlignedBB;
|
import net.minecraft.util.AxisAlignedBB;
|
||||||
import net.minecraft.world.WorldSettings.GameType;
|
import net.minecraft.world.WorldSettings.GameType;
|
||||||
|
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
|
||||||
import net.minecraftforge.common.util.Constants;
|
import net.minecraftforge.common.util.Constants;
|
||||||
import net.minecraftforge.common.util.ForgeDirection;
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
import net.minecraftforge.fluids.Fluid;
|
import net.minecraftforge.fluids.Fluid;
|
||||||
|
@ -34,6 +32,7 @@ import net.minecraftforge.fluids.FluidStack;
|
||||||
import net.minecraftforge.fluids.FluidTankInfo;
|
import net.minecraftforge.fluids.FluidTankInfo;
|
||||||
import net.minecraftforge.fluids.IFluidHandler;
|
import net.minecraftforge.fluids.IFluidHandler;
|
||||||
|
|
||||||
|
import buildcraft.BuildCraftBuilders;
|
||||||
import buildcraft.BuildCraftCore;
|
import buildcraft.BuildCraftCore;
|
||||||
import buildcraft.api.core.BCLog;
|
import buildcraft.api.core.BCLog;
|
||||||
import buildcraft.api.core.BlockIndex;
|
import buildcraft.api.core.BlockIndex;
|
||||||
|
|
|
@ -253,18 +253,16 @@ public abstract class BlueprintBase {
|
||||||
return new BptContext(world, box, mapping);
|
return new BptContext(world, box, mapping);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addSubBlueprint(BlueprintBase bpt, int x, int y, int z, ForgeDirection dir) {
|
public void addSubBlueprint(BlueprintBase subBpt, int x, int y, int z, ForgeDirection dir) {
|
||||||
NBTTagCompound nbt = new NBTTagCompound();
|
NBTTagCompound subNBT = new NBTTagCompound();
|
||||||
|
|
||||||
nbt.setInteger("x", x);
|
subNBT.setInteger("x", x);
|
||||||
nbt.setInteger("y", y);
|
subNBT.setInteger("y", y);
|
||||||
nbt.setInteger("z", z);
|
subNBT.setInteger("z", z);
|
||||||
nbt.setByte("dir", (byte) dir.ordinal());
|
subNBT.setByte("dir", (byte) dir.ordinal());
|
||||||
|
subNBT.setTag("bpt", subBpt.getNBT());
|
||||||
|
|
||||||
NBTTagCompound bptNBT = bpt.getNBT();
|
subBlueprintsNBT.add(subNBT);
|
||||||
nbt.setTag("bpt", bptNBT);
|
|
||||||
|
|
||||||
subBlueprintsNBT.add(nbt);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public NBTTagCompound getNBT() {
|
public NBTTagCompound getNBT() {
|
||||||
|
|
|
@ -10,10 +10,8 @@ package buildcraft.factory;
|
||||||
|
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
|
|
||||||
import net.minecraft.entity.player.EntityPlayer;
|
|
||||||
import net.minecraft.inventory.Container;
|
import net.minecraft.inventory.Container;
|
||||||
import net.minecraft.inventory.ICrafting;
|
import net.minecraft.inventory.ICrafting;
|
||||||
import net.minecraft.inventory.IInventory;
|
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
|
|
@ -8,9 +8,8 @@
|
||||||
*/
|
*/
|
||||||
package buildcraft.robotics.ai;
|
package buildcraft.robotics.ai;
|
||||||
|
|
||||||
import net.minecraft.inventory.ISidedInventory;
|
import net.minecraft.inventory.IInventory;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
|
||||||
import net.minecraftforge.common.util.ForgeDirection;
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
|
|
||||||
import buildcraft.api.core.IInvSlot;
|
import buildcraft.api.core.IInvSlot;
|
||||||
|
@ -65,12 +64,12 @@ public class AIRobotLoad extends AIRobot {
|
||||||
|
|
||||||
int loaded = 0;
|
int loaded = 0;
|
||||||
|
|
||||||
ISidedInventory tileInventory = station.getItemInput();
|
IInventory tileInventory = station.getItemInput();
|
||||||
if (tileInventory == null) {
|
if (tileInventory == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (IInvSlot slot : InventoryIterator.getIterable(tileInventory, station.getItemInputSide())) {
|
for (IInvSlot slot : InventoryIterator.getIterable(tileInventory, station.getItemInputSide())) {
|
||||||
ItemStack stack = slot.getStackInSlot();
|
ItemStack stack = slot.getStackInSlot();
|
||||||
|
|
||||||
if (stack == null
|
if (stack == null
|
||||||
|
|
|
@ -11,7 +11,6 @@ package buildcraft.robotics.statements;
|
||||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||||
|
|
||||||
import buildcraft.api.statements.IStatementParameter;
|
import buildcraft.api.statements.IStatementParameter;
|
||||||
import buildcraft.api.statements.StatementParameterItemStack;
|
|
||||||
import buildcraft.core.lib.utils.StringUtils;
|
import buildcraft.core.lib.utils.StringUtils;
|
||||||
import buildcraft.core.statements.StatementParameterItemStackExact;
|
import buildcraft.core.statements.StatementParameterItemStackExact;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue