Class CriterionInstance
java.lang.Object
net.minecraft.advancements.criterion.CriterionInstance
- All Implemented Interfaces:
ICriterionInstance
- Direct Known Subclasses:
BeeNestDestroyedTrigger.Instance
,BredAnimalsTrigger.Instance
,BrewedPotionTrigger.Instance
,ChangeDimensionTrigger.Instance
,ChanneledLightningTrigger.Instance
,ConstructBeaconTrigger.Instance
,ConsumeItemTrigger.Instance
,CuredZombieVillagerTrigger.Instance
,EffectsChangedTrigger.Instance
,EnchantedItemTrigger.Instance
,EnterBlockTrigger.Instance
,EntityHurtPlayerTrigger.Instance
,FilledBucketTrigger.Instance
,FishingRodHookedTrigger.Instance
,InventoryChangeTrigger.Instance
,ItemDurabilityTrigger.Instance
,KilledByCrossbowTrigger.Instance
,KilledTrigger.Instance
,LevitationTrigger.Instance
,NetherTravelTrigger.Instance
,PlacedBlockTrigger.Instance
,PlayerEntityInteractionTrigger.Instance
,PlayerGeneratesContainerLootTrigger.Instance
,PlayerHurtEntityTrigger.Instance
,PositionTrigger.Instance
,RecipeUnlockedTrigger.Instance
,RightClickBlockWithItemTrigger.Instance
,ShotCrossbowTrigger.Instance
,SlideDownBlockTrigger.Instance
,SummonedEntityTrigger.Instance
,TameAnimalTrigger.Instance
,TargetHitTrigger.Instance
,ThrownItemPickedUpByEntityTrigger.Instance
,TickTrigger.Instance
,UsedEnderEyeTrigger.Instance
,UsedTotemTrigger.Instance
,VillagerTradeTrigger.Instance
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ResourceLocation
private final EntityPredicate.AndPredicate
-
Constructor Summary
ConstructorDescriptionCriterionInstance
(ResourceLocation p_i231464_1_, EntityPredicate.AndPredicate p_i231464_2_) -
Method Summary
Modifier and TypeMethodDescriptionprotected EntityPredicate.AndPredicate
com.google.gson.JsonObject
serializeToJson
(ConditionArraySerializer p_230240_1_) toString()
-
Field Details
-
criterion
-
player
-
-
Constructor Details
-
CriterionInstance
-
-
Method Details
-
getCriterion
- Specified by:
getCriterion
in interfaceICriterionInstance
-
getPlayerPredicate
-
serializeToJson
- Specified by:
serializeToJson
in interfaceICriterionInstance
-
toString
-