Interface ISurvivalBuildEnvironment
-
public interface ISurvivalBuildEnvironment
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ISurvivalBuildEnvironmentcreate(IItemSource source, EntityPlayer actor)Create a default implementation with three parameters all being constants.EntityPlayergetActor()Get the origin of action.IItemSourcegetSource()Get the source of the items.
-
-
-
Method Detail
-
getSource
IItemSource getSource()
Get the source of the items. This will be invoked exactly once per structure element build.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.
-
getActor
EntityPlayer getActor()
Get the origin of action. This will be invoked at least once perIStructureDefinition.survivalBuild(Object, ItemStack, String, World, ExtendedFacing, int, int, int, int, int, int, int, ISurvivalBuildEnvironment, boolean)call.
-
create
static ISurvivalBuildEnvironment create(IItemSource source, EntityPlayer actor)
Create a default implementation with three parameters all being constants.- Parameters:
source- from where to drain resourceactor- source of action
-
-