public class SchematicEntity extends Schematic
Schematic.BuildingStage| Modifier and Type | Field and Description |
|---|---|
BuildingPermission |
defaultPermission |
java.lang.Class<? extends net.minecraft.entity.Entity> |
entity |
net.minecraft.nbt.NBTTagCompound |
entityNBT
This tree contains additional data to be stored in the blueprint.
|
net.minecraft.item.ItemStack[] |
storedRequirements
This field contains requirements for a given block when stored in the
blueprint.
|
| Constructor and Description |
|---|
SchematicEntity() |
| Modifier and Type | Method and Description |
|---|---|
int |
buildTime()
Returns the number of cycles to wait after building this schematic.
|
BuildingPermission |
getBuildingPermission()
Return the maximium building permission for blueprint containing this
schematic.
|
void |
getRequirementsForPlacement(IBuilderContext context,
java.util.LinkedList<net.minecraft.item.ItemStack> requirements)
Returns the requirements needed to build this block.
|
void |
idsToBlueprint(MappingRegistry registry)
Translates blocks and item ids to the blueprint referential
|
void |
idsToWorld(MappingRegistry registry)
Translates blocks and item ids to the world referential
|
boolean |
isAlreadyBuilt(IBuilderContext context) |
protected net.minecraft.nbt.NBTTagList |
newDoubleNBTList(double... par1ArrayOfDouble) |
protected net.minecraft.nbt.NBTTagList |
newFloatNBTList(float... par1ArrayOfFloat) |
void |
readFromWorld(IBuilderContext context,
net.minecraft.entity.Entity entity) |
void |
readSchematicFromNBT(net.minecraft.nbt.NBTTagCompound nbt,
MappingRegistry registry)
Loads this schematic from the blueprint NBT.
|
void |
rotateLeft(IBuilderContext context)
Perform a 90 degree rotation to the slot.
|
void |
translateToBlueprint(Translation transform)
Applies translations to all positions in the schematic to center in the
blueprint referential
|
void |
translateToWorld(Translation transform)
Apply translations to all positions in the schematic to center in the
builder referential
|
void |
writeSchematicToNBT(net.minecraft.nbt.NBTTagCompound nbt,
MappingRegistry registry)
Saves this schematic to the blueprint NBT.
|
void |
writeToWorld(IBuilderContext context) |
doNotBuild, doNotUse, getBuildStage, getEnergyRequirement, getStacksToDisplay, initializeFromObjectAt, isAlreadyBuilt, placeInWorld, postProcessing, storeRequirements, useItempublic java.lang.Class<? extends net.minecraft.entity.Entity> entity
public net.minecraft.nbt.NBTTagCompound entityNBT
public net.minecraft.item.ItemStack[] storedRequirements
public BuildingPermission defaultPermission
public void getRequirementsForPlacement(IBuilderContext context, java.util.LinkedList<net.minecraft.item.ItemStack> requirements)
SchematicgetRequirementsForPlacement in class Schematicpublic void writeToWorld(IBuilderContext context)
public void readFromWorld(IBuilderContext context, net.minecraft.entity.Entity entity)
public void translateToBlueprint(Translation transform)
SchematictranslateToBlueprint in class Schematicpublic void translateToWorld(Translation transform)
SchematictranslateToWorld in class Schematicpublic void idsToBlueprint(MappingRegistry registry)
SchematicidsToBlueprint in class Schematicpublic void idsToWorld(MappingRegistry registry)
SchematicidsToWorld in class Schematicpublic void rotateLeft(IBuilderContext context)
SchematicrotateLeft in class Schematicpublic void writeSchematicToNBT(net.minecraft.nbt.NBTTagCompound nbt,
MappingRegistry registry)
SchematicwriteSchematicToNBT in class Schematicpublic void readSchematicFromNBT(net.minecraft.nbt.NBTTagCompound nbt,
MappingRegistry registry)
SchematicreadSchematicFromNBT in class Schematicprotected net.minecraft.nbt.NBTTagList newDoubleNBTList(double... par1ArrayOfDouble)
protected net.minecraft.nbt.NBTTagList newFloatNBTList(float... par1ArrayOfFloat)
public boolean isAlreadyBuilt(IBuilderContext context)
public int buildTime()
Schematicpublic BuildingPermission getBuildingPermission()
SchematicgetBuildingPermission in class Schematic