Interface CastingEnvironmentComponent.ExtractMedia
- All Superinterfaces:
CastingEnvironmentComponent
- All Known Subinterfaces:
CastingEnvironmentComponent.ExtractMedia.Post,CastingEnvironmentComponent.ExtractMedia.Pre
- Enclosing interface:
- CastingEnvironmentComponent
public static interface CastingEnvironmentComponent.ExtractMedia
extends CastingEnvironmentComponent
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceExtractMedia component that extracts media AFTER the call toCastingEnvironment.extractMediaEnvironment(long, boolean)if the input is <= 0 you should also probably return 0 (since media cost was already paid off)static interfaceExtractMedia component that extracts media BEFORE the call toCastingEnvironment.extractMediaEnvironment(long, boolean)Nested classes/interfaces inherited from interface at.petrak.hexcasting.api.casting.eval.CastingEnvironmentComponent
CastingEnvironmentComponent.ExtractMedia, CastingEnvironmentComponent.HasEditPermissionsAt, CastingEnvironmentComponent.IsVecInRange, CastingEnvironmentComponent.Key<C extends CastingEnvironmentComponent>, CastingEnvironmentComponent.PostCast, CastingEnvironmentComponent.PostExecution -
Method Summary
Modifier and TypeMethodDescriptionlongonExtractMedia(long cost, boolean simulate) Receives the cost that is being extracted, should return the remaining cost after deducting whatever cost source this component is responsible for (should be >= 0)Methods inherited from interface at.petrak.hexcasting.api.casting.eval.CastingEnvironmentComponent
getKey
-
Method Details
-
onExtractMedia
long onExtractMedia(long cost, boolean simulate) Receives the cost that is being extracted, should return the remaining cost after deducting whatever cost source this component is responsible for (should be >= 0)
-