Class PlayerPredicate
java.lang.Object
net.minecraft.advancements.critereon.PlayerPredicate
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static class
(package private) static interface
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic PlayerPredicate
private GameType
private MinMaxBounds.Ints
static int
private EntityPredicate
private it.unimi.dsi.fastutil.objects.Object2BooleanMap<ResourceLocation>
private Map<Stat<?>,MinMaxBounds.Ints>
-
Constructor Summary
ConstructorDescriptionPlayerPredicate(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.AdvancementPredicate
advancementPredicateFromJson(com.google.gson.JsonElement p_62290_)
static PlayerPredicate
fromJson(com.google.gson.JsonElement p_62277_)
private static <T> Stat<T>
getStat(StatType<T> p_62268_, ResourceLocation p_62269_)
private static <T> ResourceLocation
getStatValueId(Stat<T> p_62266_)
boolean
com.google.gson.JsonElement
-
Field Details
-
ANY
-
LOOKING_AT_RANGE
public static final int LOOKING_AT_RANGE- See Also:
- Constant Field Values
-
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
-
fromJson
-
getStat
-
getStatValueId
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-