public interface ISurvivalConstructable extends IConstructable
IConstructable. Tile Entities (or delegates returned by
IConstructableProvider.getConstructable() should implement this interface to allow third party tools and
StructureLib builtin constructable tools to trigger autoplace in survival mode.
While not originally planned, a creative player can also use this interface to trigger autoplace by using an
IItemSource with every possible items in the game.
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DISABLE_HACKY_MIGRATION_CODE
End player might want to disable this hack if it turns out to be too crashy
|
| Modifier and Type | Method and Description |
|---|---|
static EntityPlayer |
__get_player()
Deprecated.
|
default int |
survivalConstruct(ItemStack stackSize,
int elementBudget,
IItemSource source,
EntityPlayerMP actor)
Deprecated.
|
default int |
survivalConstruct(ItemStack stackSize,
int elementBudget,
ISurvivalBuildEnvironment env)
|
construct, getStructureDefinition, getStructureDescriptionstatic final boolean DISABLE_HACKY_MIGRATION_CODE
@Deprecated default int survivalConstruct(ItemStack stackSize, int elementBudget, IItemSource source, EntityPlayerMP actor)
IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, IItemSource, EntityPlayerMP, java.util.function.Consumer)
or
IStructureDefinition.survivalBuild(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int, int, IItemSource, EntityPlayerMP, boolean)elementBudget - The server configured element budget. The implementor can choose to tune this up a bit if
the structure is too big, but generally should not be a 4 digits number to not overwhelm the
serverdefault int survivalConstruct(ItemStack stackSize, int elementBudget, ISurvivalBuildEnvironment env)
IStructureElement.survivalPlaceBlock(Object, World, int, int, int, ItemStack, AutoPlaceEnvironment)
or
IStructureDefinition.survivalBuild(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int, int, ISurvivalBuildEnvironment, boolean)elementBudget - The server configured element budget. The implementor can choose to tune this up a bit if
the structure is too big, but generally should not be a 4 digits number to not overwhelm the
server@Deprecated static EntityPlayer __get_player()