implemented fire support in blueprints, close #1527

This commit is contained in:
SpaceToad 2014-03-19 11:09:30 +01:00
parent 92ef765f25
commit 8f3e836c7f
2 changed files with 33 additions and 0 deletions

View file

@ -53,6 +53,7 @@ import buildcraft.builders.schematics.SchematicBed;
import buildcraft.builders.schematics.SchematicCustomStack;
import buildcraft.builders.schematics.SchematicDirt;
import buildcraft.builders.schematics.SchematicDoor;
import buildcraft.builders.schematics.SchematicFire;
import buildcraft.builders.schematics.SchematicFluid;
import buildcraft.builders.schematics.SchematicIgnore;
import buildcraft.builders.schematics.SchematicIgnoreMeta;
@ -230,6 +231,8 @@ public class BuildCraftBuilders extends BuildCraftMod {
SchematicRegistry.registerSchematicClass(Blocks.detector_rail, SchematicRail.class);
SchematicRegistry.registerSchematicClass(Blocks.golden_rail, SchematicRail.class);
SchematicRegistry.registerSchematicClass(Blocks.fire, SchematicFire.class);
// BUILDCRAFT BLOCKS
SchematicRegistry.registerSchematicClass(architectBlock, SchematicRotateInventory.class, new int[]{2, 5, 3, 4}, true);

View file

@ -0,0 +1,30 @@
/**
* Copyright (c) 2011-2014, SpaceToad and the BuildCraft Team
* http://www.mod-buildcraft.com
*
* BuildCraft is distributed under the terms of the Minecraft Mod Public
* License 1.0, or MMPL. Please check the contents of the license located in
* http://www.mod-buildcraft.com/MMPL-1.0.txt
*/
package buildcraft.builders.schematics;
import java.util.LinkedList;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import buildcraft.api.blueprints.IBuilderContext;
import buildcraft.api.blueprints.SchematicBlock;
public class SchematicFire extends SchematicBlock {
@Override
public void addRequirements(IBuilderContext context, LinkedList<ItemStack> requirements) {
requirements.add(new ItemStack (Items.flint_and_steel));
}
@Override
public void readFromWorld(IBuilderContext context, int x, int y, int z) {
// No specific data to read from the world. Cancels the initialization
// of the requirement list.
}
}