public interface ISurvivalBuildEnvironment
| Modifier and Type | Method and Description |
|---|---|
static ISurvivalBuildEnvironment |
create(IItemSource source,
EntityPlayer actor)
Create a default implementation with three parameters all being constants.
|
EntityPlayer |
getActor()
Get the origin of action.
|
IItemSource |
getSource()
Get the source of the items.
|
IItemSource getSource()
If the call chain ever got into the old API, this will be called at least once per
IStructureDefinition.survivalBuild(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int, int, ISurvivalBuildEnvironment, boolean)
call.
EntityPlayer getActor()
IStructureDefinition.survivalBuild(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int, int, ISurvivalBuildEnvironment, boolean)
call.static ISurvivalBuildEnvironment create(IItemSource source, EntityPlayer actor)
source - from where to drain resourceactor - source of action