public class SchematicPrinter
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SchematicPrinter.BlockTargetHandler |
static interface |
SchematicPrinter.EntityTargetHandler |
static interface |
SchematicPrinter.PlacementPredicate |
static class |
SchematicPrinter.PrintStage |
| Constructor and Description |
|---|
SchematicPrinter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
advanceCurrentPos() |
void |
fromTag(net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket) |
net.minecraft.util.math.BlockPos |
getAnchor() |
ItemRequirement |
getCurrentRequirement() |
net.minecraft.util.math.BlockPos |
getCurrentTarget() |
SchematicPrinter.PrintStage |
getPrintStage() |
void |
handleCurrentTarget(SchematicPrinter.BlockTargetHandler blockHandler,
SchematicPrinter.EntityTargetHandler entityHandler) |
boolean |
isLoaded() |
boolean |
isWorldEmpty() |
void |
loadSchematic(net.minecraft.item.ItemStack blueprint,
net.minecraft.world.World originalWorld,
boolean processNBT) |
int |
markAllBlockRequirements(MaterialChecklist checklist,
net.minecraft.world.World world,
SchematicPrinter.PlacementPredicate predicate) |
void |
markAllEntityRequirements(MaterialChecklist checklist) |
void |
resetSchematic() |
static boolean |
shouldDeferBlock(net.minecraft.block.BlockState state) |
boolean |
shouldPlaceBlock(net.minecraft.world.World world,
SchematicPrinter.PlacementPredicate predicate,
net.minecraft.util.math.BlockPos pos) |
boolean |
shouldPlaceCurrent(net.minecraft.world.World world) |
boolean |
shouldPlaceCurrent(net.minecraft.world.World world,
SchematicPrinter.PlacementPredicate predicate) |
boolean |
tryAdvanceCurrentPos() |
void |
write(net.minecraft.nbt.CompoundNBT compound) |
public void fromTag(net.minecraft.nbt.CompoundNBT compound,
boolean clientPacket)
public void write(net.minecraft.nbt.CompoundNBT compound)
public void loadSchematic(net.minecraft.item.ItemStack blueprint,
net.minecraft.world.World originalWorld,
boolean processNBT)
public void resetSchematic()
public boolean isLoaded()
public net.minecraft.util.math.BlockPos getCurrentTarget()
public SchematicPrinter.PrintStage getPrintStage()
public net.minecraft.util.math.BlockPos getAnchor()
public boolean isWorldEmpty()
public void handleCurrentTarget(SchematicPrinter.BlockTargetHandler blockHandler, SchematicPrinter.EntityTargetHandler entityHandler)
public boolean shouldPlaceCurrent(net.minecraft.world.World world)
public boolean shouldPlaceCurrent(net.minecraft.world.World world,
SchematicPrinter.PlacementPredicate predicate)
public boolean shouldPlaceBlock(net.minecraft.world.World world,
SchematicPrinter.PlacementPredicate predicate,
net.minecraft.util.math.BlockPos pos)
public ItemRequirement getCurrentRequirement()
public int markAllBlockRequirements(MaterialChecklist checklist, net.minecraft.world.World world, SchematicPrinter.PlacementPredicate predicate)
public void markAllEntityRequirements(MaterialChecklist checklist)
public boolean advanceCurrentPos()
public boolean tryAdvanceCurrentPos()
public static boolean shouldDeferBlock(net.minecraft.block.BlockState state)