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 TypeFieldDescriptionprivate final Map<ResourceLocation,
PlayerPredicate.AdvancementPredicate> static final PlayerPredicate
private final GameType
private final MinMaxBounds.Ints
static final int
private final EntityPredicate
private final it.unimi.dsi.fastutil.objects.Object2BooleanMap<ResourceLocation>
private final 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:
-
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()
-