Class PlayerPredicate
java.lang.Object
net.minecraft.advancements.critereon.PlayerPredicate
- All Implemented Interfaces:
 EntitySubPredicate
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static class(package private) static interfacestatic classNested classes/interfaces inherited from interface net.minecraft.advancements.critereon.EntitySubPredicate
EntitySubPredicate.Type, EntitySubPredicate.Types - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<ResourceLocation,PlayerPredicate.AdvancementPredicate> private final GameTypeprivate final MinMaxBounds.Intsstatic final intprivate final EntityPredicateprivate final it.unimi.dsi.fastutil.objects.Object2BooleanMap<ResourceLocation>private final Map<Stat<?>,MinMaxBounds.Ints> Fields inherited from interface net.minecraft.advancements.critereon.EntitySubPredicate
ANY - 
Constructor Summary
ConstructorsConstructorDescriptionPlayerPredicate(MinMaxBounds.Ints p_156746_, GameType p_156747_, Map<Stat<?>, MinMaxBounds.Ints> p_156748_, it.unimi.dsi.fastutil.objects.Object2BooleanMap<ResourceLocation> p_156749_, Map<ResourceLocation, PlayerPredicate.AdvancementPredicate> p_156750_, EntityPredicate p_156751_)  - 
Method Summary
Modifier and TypeMethodDescriptionprivate static PlayerPredicate.AdvancementPredicateadvancementPredicateFromJson(com.google.gson.JsonElement p_62290_) static PlayerPredicatefromJson(com.google.gson.JsonObject p_222492_) private static <T> Stat<T>getStat(StatType<T> p_62268_, ResourceLocation p_62269_) private static <T> ResourceLocationgetStatValueId(Stat<T> p_62266_) booleanmatches(Entity p_222484_, ServerLevel p_222485_, Vec3 p_222486_) com.google.gson.JsonObjecttype()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.advancements.critereon.EntitySubPredicate
serialize 
- 
Field Details
- 
LOOKING_AT_RANGE
public static final int LOOKING_AT_RANGE- See Also:
 
 - 
level
 - 
gameType
 - 
stats
 - 
recipes
 - 
advancements
 - 
lookingAt
 
 - 
 - 
Constructor Details
- 
PlayerPredicate
PlayerPredicate(MinMaxBounds.Ints p_156746_, @Nullable GameType p_156747_, Map<Stat<?>, MinMaxBounds.Ints> p_156748_, it.unimi.dsi.fastutil.objects.Object2BooleanMap<ResourceLocation> p_156749_, Map<ResourceLocation, PlayerPredicate.AdvancementPredicate> p_156750_, EntityPredicate p_156751_)  
 - 
 - 
Method Details
- 
advancementPredicateFromJson
private static PlayerPredicate.AdvancementPredicate advancementPredicateFromJson(com.google.gson.JsonElement p_62290_)  - 
matches
- Specified by:
 matchesin interfaceEntitySubPredicate
 - 
fromJson
 - 
getStat
 - 
getStatValueId
 - 
serializeCustomData
public com.google.gson.JsonObject serializeCustomData()- Specified by:
 serializeCustomDatain interfaceEntitySubPredicate
 - 
type
- Specified by:
 typein interfaceEntitySubPredicate
 
 -