Uses of Class
io.github.lambdaphoenix.advancementLib.AdvancementRegisterBuilder
-
Uses of AdvancementRegisterBuilder in io.github.lambdaphoenix.advancementLib
Methods in io.github.lambdaphoenix.advancementLib that return AdvancementRegisterBuilderModifier and TypeMethodDescriptionAdvancementRegisterBuilder.advancementKey(String advancementKey) Sets the unique identifier for this advancement.AdvancementRegisterBuilder.condition(BiPredicate<org.bukkit.entity.Player, E> condition) Sets the condition that must be true for the advancement to progress.Sets the event type that triggers this advancement.Sets how criteria are granted to the playerAdvancementRegisterBuilder.increment(ToIntFunction<E> increment) Sets how much progress each event should add.AdvancementRegisterBuilder.playerExtractor(Function<E, org.bukkit.entity.Player> playerExtractor) Sets a custom function to extract the player from the event.<E extends org.bukkit.event.Event>
AdvancementRegisterBuilder<E> Starts a newAdvancementRegisterBuilderfor the given event type.AdvancementRegisterBuilder.requireParent(boolean requireParent) Sets if the parent advancement needs to be completed.AdvancementRegisterBuilder.targetValue(int targetValue) Sets how many times the event must occur before the advancement is granted.