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
public abstract class CriterionInstance extends java.lang.Object implements ICriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceLocation
criterion
private EntityPredicate.AndPredicate
player
-
Constructor Summary
Constructors Constructor Description CriterionInstance(ResourceLocation p_i231464_1_, EntityPredicate.AndPredicate p_i231464_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceLocation
getCriterion()
protected EntityPredicate.AndPredicate
getPlayerPredicate()
com.google.gson.JsonObject
serializeToJson(ConditionArraySerializer p_230240_1_)
java.lang.String
toString()
-
-
-
Field Detail
-
criterion
private final ResourceLocation criterion
-
player
private final EntityPredicate.AndPredicate player
-
-
Constructor Detail
-
CriterionInstance
public CriterionInstance(ResourceLocation p_i231464_1_, EntityPredicate.AndPredicate p_i231464_2_)
-
-
Method Detail
-
getCriterion
public ResourceLocation getCriterion()
- Specified by:
getCriterion
in interfaceICriterionInstance
-
getPlayerPredicate
protected EntityPredicate.AndPredicate getPlayerPredicate()
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-