-
Notifications
You must be signed in to change notification settings - Fork 497
/
BlueprintDeployer.java
executable file
·48 lines (39 loc) · 1.58 KB
/
BlueprintDeployer.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
* Copyright (c) 2011-2015, SpaceToad and the BuildCraft Team
* http://www.mod-buildcraft.com
*
* The BuildCraft API is distributed under the terms of the MIT License.
* Please check the contents of the license, which should be located
* as "LICENSE.API" in the BuildCraft source code distribution.
*/
package buildcraft.api.blueprints;
import java.io.File;
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;
/**
* This class is provided as a utility class for third-party mods that would
* like to easily deploy structures that are written in blueprints. It does
* not offer control on material that needs to get in, or how the structure
* is deployed, but allows to create contents of a blueprint in one cycle.
* Note that these functionalities will only work if BuildCraft is installed.
*/
public abstract class BlueprintDeployer {
/**
* The deployed instantiated by BuildCraft. This is set by the BuildCraft
* builder mod. Mods that want to work with BuildCraft not installed should
* check for this value to be not null.
*/
public static BlueprintDeployer instance;
/**
* Deploy the contents of the blueprints as if the builder was located at
* {x, y, z} facing the direction dir.
*/
public abstract void deployBlueprint(World world, int x, int y, int z,
ForgeDirection dir, File file);
/**
*Deploy the contents of the byte array as if the builder was located at
*{x, y, z} facing the direction dir.
*/
public abstract void deployBlueprintFromFileStream(World world, int x, int y,
int z, ForgeDirection dir, byte [] data);
}