Class QuickArtifactEffect

java.lang.Object
com.binaris.wizardry.core.QuickArtifactEffect
All Implemented Interfaces:
IArtifactEffect

public class QuickArtifactEffect extends Object implements IArtifactEffect
Utility class used for quickly add artifacts effect to simple items without having to create a whole new class. This is normally used when you just want to:
  • Check if the user has the artifact equipped and do a quick change
  • Check world status and do something in return with the player
  • Check the event and do something in return with the player
  • Basically any simple-condition with a simple-implementation


It provides static methods that take a BiPredicate and a BiConsumer for each of the events in IArtifactEffect, and returns an instance of IArtifactEffect with the corresponding method overridden to run the consumer if the predicate returns true.