Class AbstractCriterion<T extends AbstractCriterionConditions>
java.lang.Object
net.minecraft.advancement.criterion.AbstractCriterion<T>
- All Implemented Interfaces:
Criterion<T>
- Direct Known Subclasses:
BeeNestDestroyedCriterion
,BredAnimalsCriterion
,BrewedPotionCriterion
,ChangedDimensionCriterion
,ChanneledLightningCriterion
,class_6405
,class_6407
,class_6409
,ConstructBeaconCriterion
,ConsumeItemCriterion
,CuredZombieVillagerCriterion
,EffectsChangedCriterion
,EnchantedItemCriterion
,EnterBlockCriterion
,EntityHurtPlayerCriterion
,FilledBucketCriterion
,FishingRodHookedCriterion
,InventoryChangedCriterion
,ItemDurabilityChangedCriterion
,ItemUsedOnBlockCriterion
,KilledByCrossbowCriterion
,LevitationCriterion
,LocationArrivalCriterion
,NetherTravelCriterion
,OnKilledCriterion
,PlacedBlockCriterion
,PlayerGeneratesContainerLootCriterion
,PlayerHurtEntityCriterion
,PlayerInteractedWithEntityCriterion
,RecipeUnlockedCriterion
,ShotCrossbowCriterion
,SlideDownBlockCriterion
,SummonedEntityCriterion
,TameAnimalCriterion
,TargetHitCriterion
,ThrownItemPickedUpByEntityCriterion
,TickCriterion
,UsedEnderEyeCriterion
,UsedTotemCriterion
,VillagerTradeCriterion
public abstract class AbstractCriterion<T extends AbstractCriterionConditions>
extends Object
implements Criterion<T>
- Mappings:
Namespace Name official cs
intermediary net/minecraft/class_4558
named net/minecraft/advancement/criterion/AbstractCriterion
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.advancement.criterion.Criterion
Criterion.ConditionsContainer<T extends CriterionConditions>
-
Field Summary
Modifier and TypeFieldDescriptionprivate Map<PlayerAdvancementTracker,Set<Criterion.ConditionsContainer<T>>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beginTrackingCondition(PlayerAdvancementTracker manager, Criterion.ConditionsContainer<T> conditions)
conditionsFromJson(JsonObject jsonObject, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)
protected abstract T
conditionsFromJson(JsonObject obj, EntityPredicate.Extended playerPredicate, AdvancementEntityPredicateDeserializer predicateDeserializer)
void
endTracking(PlayerAdvancementTracker tracker)
void
endTrackingCondition(PlayerAdvancementTracker manager, Criterion.ConditionsContainer<T> conditions)
protected void
test(ServerPlayerEntity player, Predicate<T> tester)
-
Field Details
-
progressions
private final Map<PlayerAdvancementTracker,Set<Criterion.ConditionsContainer<T extends AbstractCriterionConditions>>> progressions- Mappings:
Namespace Name Mixin selector official a
Lcs;a:Ljava/util/Map;
intermediary field_20735
Lnet/minecraft/class_4558;field_20735:Ljava/util/Map;
named progressions
Lnet/minecraft/advancement/criterion/AbstractCriterion;progressions:Ljava/util/Map;
-
-
Constructor Details
-
AbstractCriterion
public AbstractCriterion()
-
-
Method Details
-
beginTrackingCondition
public final void beginTrackingCondition(PlayerAdvancementTracker manager, Criterion.ConditionsContainer<T> conditions)- Specified by:
beginTrackingCondition
in interfaceCriterion<T extends AbstractCriterionConditions>
- Mappings:
Namespace Name Mixin selector official a
Lal;a(Lxe;Lal$a;)V
intermediary method_792
Lnet/minecraft/class_179;method_792(Lnet/minecraft/class_2985;Lnet/minecraft/class_179$class_180;)V
named beginTrackingCondition
Lnet/minecraft/advancement/criterion/Criterion;beginTrackingCondition(Lnet/minecraft/advancement/PlayerAdvancementTracker;Lnet/minecraft/advancement/criterion/Criterion$ConditionsContainer;)V
-
endTrackingCondition
public final void endTrackingCondition(PlayerAdvancementTracker manager, Criterion.ConditionsContainer<T> conditions)- Specified by:
endTrackingCondition
in interfaceCriterion<T extends AbstractCriterionConditions>
- Mappings:
Namespace Name Mixin selector official b
Lal;b(Lxe;Lal$a;)V
intermediary method_793
Lnet/minecraft/class_179;method_793(Lnet/minecraft/class_2985;Lnet/minecraft/class_179$class_180;)V
named endTrackingCondition
Lnet/minecraft/advancement/criterion/Criterion;endTrackingCondition(Lnet/minecraft/advancement/PlayerAdvancementTracker;Lnet/minecraft/advancement/criterion/Criterion$ConditionsContainer;)V
-
endTracking
- Specified by:
endTracking
in interfaceCriterion<T extends AbstractCriterionConditions>
- Mappings:
Namespace Name Mixin selector official a
Lal;a(Lxe;)V
intermediary method_791
Lnet/minecraft/class_179;method_791(Lnet/minecraft/class_2985;)V
named endTracking
Lnet/minecraft/advancement/criterion/Criterion;endTracking(Lnet/minecraft/advancement/PlayerAdvancementTracker;)V
-
conditionsFromJson
protected abstract T conditionsFromJson(JsonObject obj, EntityPredicate.Extended playerPredicate, AdvancementEntityPredicateDeserializer predicateDeserializer)- Mappings:
Namespace Name Mixin selector official b
Lcs;b(Lcom/google/gson/JsonObject;Lbm$b;Lbd;)Lar;
intermediary method_27854
Lnet/minecraft/class_4558;method_27854(Lcom/google/gson/JsonObject;Lnet/minecraft/class_2048$class_5258;Lnet/minecraft/class_5257;)Lnet/minecraft/class_195;
named conditionsFromJson
Lnet/minecraft/advancement/criterion/AbstractCriterion;conditionsFromJson(Lcom/google/gson/JsonObject;Lnet/minecraft/predicate/entity/EntityPredicate$Extended;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Lnet/minecraft/advancement/criterion/AbstractCriterionConditions;
-
conditionsFromJson
public final T conditionsFromJson(JsonObject jsonObject, AdvancementEntityPredicateDeserializer advancementEntityPredicateDeserializer)- Specified by:
conditionsFromJson
in interfaceCriterion<T extends AbstractCriterionConditions>
- Mappings:
Namespace Name Mixin selector official b
Lcs;b(Lcom/google/gson/JsonObject;Lbd;)Lar;
intermediary method_27853
Lnet/minecraft/class_4558;method_27853(Lcom/google/gson/JsonObject;Lnet/minecraft/class_5257;)Lnet/minecraft/class_195;
named conditionsFromJson
Lnet/minecraft/advancement/criterion/AbstractCriterion;conditionsFromJson(Lcom/google/gson/JsonObject;Lnet/minecraft/predicate/entity/AdvancementEntityPredicateDeserializer;)Lnet/minecraft/advancement/criterion/AbstractCriterionConditions;
-
test
- Mappings:
Namespace Name Mixin selector official a
Lcs;a(Labs;Ljava/util/function/Predicate;)V
intermediary method_22510
Lnet/minecraft/class_4558;method_22510(Lnet/minecraft/class_3222;Ljava/util/function/Predicate;)V
named test
Lnet/minecraft/advancement/criterion/AbstractCriterion;test(Lnet/minecraft/server/network/ServerPlayerEntity;Ljava/util/function/Predicate;)V
-