public abstract class BptBuilderBase extends java.lang.Object implements IAreaProvider
| Modifier and Type | Field and Description |
|---|---|
BlueprintBase |
blueprint |
protected java.util.HashSet<BlockIndex> |
builtLocations |
protected java.util.HashSet<BlockIndex> |
clearedLocations |
BptContext |
context |
protected boolean |
done |
protected boolean |
initialized |
protected int |
x |
protected int |
y |
protected int |
z |
| Constructor and Description |
|---|
BptBuilderBase(BlueprintBase bluePrint,
net.minecraft.world.World world,
int x,
int y,
int z) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
buildNextSlot(net.minecraft.world.World world,
TileAbstractBuilder builder,
double x,
double y,
double z) |
boolean |
buildSlot(net.minecraft.world.World world,
IBuildingItemsProvider builder,
BuildingSlot slot,
double x,
double y,
double z) |
protected boolean |
canDestroy(TileAbstractBuilder builder,
IBuilderContext context,
BuildingSlotBlock slot) |
void |
consumeEnergyToDestroy(TileAbstractBuilder builder,
BuildingSlotBlock slot) |
void |
createDestroyItems(BuildingSlotBlock slot) |
net.minecraft.util.AxisAlignedBB |
getBoundingBox() |
BptContext |
getContext() |
protected abstract BuildingSlot |
getNextBlock(net.minecraft.world.World world,
TileAbstractBuilder inv) |
void |
initialize() |
protected abstract void |
internalInit() |
protected boolean |
isBlockBreakCanceled(net.minecraft.world.World world,
int x,
int y,
int z) |
protected boolean |
isBlockPlaceCanceled(net.minecraft.world.World world,
int x,
int y,
int z,
SchematicBlockBase schematic) |
boolean |
isDone(IBuildingItemsProvider builder) |
void |
loadBuildStateToNBT(net.minecraft.nbt.NBTTagCompound nbt,
IBuildingItemsProvider builder) |
void |
postProcessing(net.minecraft.world.World world) |
void |
removeFromWorld()
Remove from the world all objects used to define the area.
|
protected abstract BuildingSlot |
reserveNextBlock(net.minecraft.world.World world) |
BuildingSlot |
reserveNextSlot(net.minecraft.world.World world) |
void |
saveBuildStateToNBT(net.minecraft.nbt.NBTTagCompound nbt,
IBuildingItemsProvider builder) |
void |
useRequirements(net.minecraft.inventory.IInventory inv,
BuildingSlot slot) |
int |
xMax() |
int |
xMin() |
int |
yMax() |
int |
yMin() |
int |
zMax() |
int |
zMin() |
public BlueprintBase blueprint
public BptContext context
protected boolean done
protected java.util.HashSet<BlockIndex> clearedLocations
protected java.util.HashSet<BlockIndex> builtLocations
protected int x
protected int y
protected int z
protected boolean initialized
public BptBuilderBase(BlueprintBase bluePrint, net.minecraft.world.World world, int x, int y, int z)
public void initialize()
protected abstract void internalInit()
protected abstract BuildingSlot reserveNextBlock(net.minecraft.world.World world)
protected abstract BuildingSlot getNextBlock(net.minecraft.world.World world, TileAbstractBuilder inv)
public boolean buildNextSlot(net.minecraft.world.World world,
TileAbstractBuilder builder,
double x,
double y,
double z)
public boolean buildSlot(net.minecraft.world.World world,
IBuildingItemsProvider builder,
BuildingSlot slot,
double x,
double y,
double z)
public BuildingSlot reserveNextSlot(net.minecraft.world.World world)
public int xMin()
xMin in interface IAreaProviderpublic int yMin()
yMin in interface IAreaProviderpublic int zMin()
zMin in interface IAreaProviderpublic int xMax()
xMax in interface IAreaProviderpublic int yMax()
yMax in interface IAreaProviderpublic int zMax()
zMax in interface IAreaProviderpublic void removeFromWorld()
IAreaProviderremoveFromWorld in interface IAreaProviderpublic net.minecraft.util.AxisAlignedBB getBoundingBox()
public void postProcessing(net.minecraft.world.World world)
public BptContext getContext()
public boolean isDone(IBuildingItemsProvider builder)
protected final boolean canDestroy(TileAbstractBuilder builder, IBuilderContext context, BuildingSlotBlock slot)
public void consumeEnergyToDestroy(TileAbstractBuilder builder, BuildingSlotBlock slot)
public void createDestroyItems(BuildingSlotBlock slot)
public void useRequirements(net.minecraft.inventory.IInventory inv,
BuildingSlot slot)
public void saveBuildStateToNBT(net.minecraft.nbt.NBTTagCompound nbt,
IBuildingItemsProvider builder)
public void loadBuildStateToNBT(net.minecraft.nbt.NBTTagCompound nbt,
IBuildingItemsProvider builder)
protected boolean isBlockBreakCanceled(net.minecraft.world.World world,
int x,
int y,
int z)
protected boolean isBlockPlaceCanceled(net.minecraft.world.World world,
int x,
int y,
int z,
SchematicBlockBase schematic)