Class PlayerPredicate
- java.lang.Object
-
- net.minecraft.advancements.criterion.PlayerPredicate
-
public class PlayerPredicate extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
PlayerPredicate.CompletedAdvancementPredicate
(package private) static class
PlayerPredicate.CriteriaPredicate
static class
PlayerPredicate.Default
(package private) static interface
PlayerPredicate.IAdvancementPredicate
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<ResourceLocation,PlayerPredicate.IAdvancementPredicate>
advancements
static PlayerPredicate
ANY
private GameType
gameType
private MinMaxBounds.IntBound
level
private it.unimi.dsi.fastutil.objects.Object2BooleanMap<ResourceLocation>
recipes
private java.util.Map<Stat<?>,MinMaxBounds.IntBound>
stats
-
Constructor Summary
Constructors Modifier Constructor Description private
PlayerPredicate(MinMaxBounds.IntBound p_i225770_1_, GameType p_i225770_2_, java.util.Map<Stat<?>,MinMaxBounds.IntBound> p_i225770_3_, it.unimi.dsi.fastutil.objects.Object2BooleanMap<ResourceLocation> p_i225770_4_, java.util.Map<ResourceLocation,PlayerPredicate.IAdvancementPredicate> p_i225770_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private 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
matches(Entity p_226998_1_)
com.google.gson.JsonElement
serializeToJson()
-
-
-
Field Detail
-
ANY
public static final PlayerPredicate ANY
-
level
private final MinMaxBounds.IntBound level
-
gameType
private final GameType gameType
-
stats
private final java.util.Map<Stat<?>,MinMaxBounds.IntBound> stats
-
recipes
private final it.unimi.dsi.fastutil.objects.Object2BooleanMap<ResourceLocation> recipes
-
advancements
private final java.util.Map<ResourceLocation,PlayerPredicate.IAdvancementPredicate> advancements
-
-
Constructor Detail
-
PlayerPredicate
private PlayerPredicate(MinMaxBounds.IntBound p_i225770_1_, GameType p_i225770_2_, java.util.Map<Stat<?>,MinMaxBounds.IntBound> p_i225770_3_, it.unimi.dsi.fastutil.objects.Object2BooleanMap<ResourceLocation> p_i225770_4_, java.util.Map<ResourceLocation,PlayerPredicate.IAdvancementPredicate> p_i225770_5_)
-
-
Method Detail
-
advancementPredicateFromJson
private static PlayerPredicate.IAdvancementPredicate advancementPredicateFromJson(com.google.gson.JsonElement p_227004_0_)
-
matches
public boolean matches(Entity p_226998_1_)
-
fromJson
public static PlayerPredicate fromJson(@Nullable com.google.gson.JsonElement p_227000_0_)
-
getStat
private static <T> Stat<T> getStat(StatType<T> p_226997_0_, ResourceLocation p_226997_1_)
-
getStatValueId
private static <T> ResourceLocation getStatValueId(Stat<T> p_226996_0_)
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-
-