Class PlayerPredicate
java.lang.Object
net.minecraft.advancements.criterion.PlayerPredicate
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static class
static class
(package private) static interface
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<ResourceLocation,
PlayerPredicate.IAdvancementPredicate> static final PlayerPredicate
private final GameType
private final MinMaxBounds.IntBound
private final it.unimi.dsi.fastutil.objects.Object2BooleanMap<ResourceLocation>
private final Map<Stat<?>,
MinMaxBounds.IntBound> -
Constructor Summary
ModifierConstructorDescriptionprivate
PlayerPredicate
(MinMaxBounds.IntBound p_i225770_1_, GameType p_i225770_2_, Map<Stat<?>, MinMaxBounds.IntBound> p_i225770_3_, it.unimi.dsi.fastutil.objects.Object2BooleanMap<ResourceLocation> p_i225770_4_, Map<ResourceLocation, PlayerPredicate.IAdvancementPredicate> p_i225770_5_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static PlayerPredicate.IAdvancementPredicate
advancementPredicateFromJson
(com.google.gson.JsonElement p_227004_0_) static PlayerPredicate
fromJson
(com.google.gson.JsonElement p_227000_0_) private static <T> Stat<T>
getStat
(StatType<T> p_226997_0_, ResourceLocation p_226997_1_) private static <T> ResourceLocation
getStatValueId
(Stat<T> p_226996_0_) boolean
com.google.gson.JsonElement
-
Field Details
-
ANY
-
level
-
gameType
-
stats
-
recipes
-
advancements
-
-
Constructor Details
-
PlayerPredicate
private PlayerPredicate(MinMaxBounds.IntBound p_i225770_1_, GameType p_i225770_2_, Map<Stat<?>, MinMaxBounds.IntBound> p_i225770_3_, it.unimi.dsi.fastutil.objects.Object2BooleanMap<ResourceLocation> p_i225770_4_, Map<ResourceLocation, PlayerPredicate.IAdvancementPredicate> p_i225770_5_)
-
-
Method Details
-
advancementPredicateFromJson
private static PlayerPredicate.IAdvancementPredicate advancementPredicateFromJson(com.google.gson.JsonElement p_227004_0_) -
matches
-
fromJson
-
getStat
-
getStatValueId
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-