Break Block With Staff Criterion
class BreakBlockWithStaffCriterion : AbstractCriterion<BreakBlockWithStaffCriterion.Conditions> (source)
A criterion, which triggers when a player breaks a block using a staff.
Types
Link copied to clipboard
data class Conditions(val player: Optional<LootContextPredicate>, val location: Optional<LocationPredicate>) : AbstractCriterion.Conditions
Conditions of BreakBlockWithStaffCriterion.
Inherited functions
Link copied to clipboard
override fun beginTrackingCondition(manager: PlayerAdvancementTracker, conditions: Criterion.ConditionsContainer<BreakBlockWithStaffCriterion.Conditions>)
Link copied to clipboard
open fun create(conditions: BreakBlockWithStaffCriterion.Conditions): AdvancementCriterion<BreakBlockWithStaffCriterion.Conditions>
Link copied to clipboard
Link copied to clipboard
override fun endTrackingCondition(manager: PlayerAdvancementTracker, conditions: Criterion.ConditionsContainer<BreakBlockWithStaffCriterion.Conditions>)
Link copied to clipboard
protected open fun trigger(player: ServerPlayerEntity, predicate: Predicate<BreakBlockWithStaffCriterion.Conditions>)