IsContextApplicable - yeelp/Distinct-Damage-Descriptions GitHub Wiki

IsContextApplicable is a function type used in DDD's DistributionBuilder. It is a function with the following signature:

boolean handle(ICustomDistribution, IDamageSource, IEntityLivingBase)

It returns true if the distribution this function is attached to is applicable to the current context defined by the damage source and target. That's a complicated way of saying this is the function where you define when your custom distribution should be used.