Interface ISurvivalBuildEnvironment
public interface ISurvivalBuildEnvironment
-
Method Summary
Modifier and TypeMethodDescriptionstatic ISurvivalBuildEnvironmentcreate(IItemSource source, EntityPlayer actor) Create a default implementation with three parameters all being constants.getActor()Get the origin of action.Get the source of the items.
-
Method Details
-
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
Create a default implementation with three parameters all being constants.- Parameters:
source- from where to drain resourceactor- source of action
-