Class PlayerPredicate
java.lang.Object
net.minecraft.advancements.critereon.PlayerPredicate
- All Implemented Interfaces:
EntitySubPredicate
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static class
(package private) static interface
static class
Nested classes/interfaces inherited from interface net.minecraft.advancements.critereon.EntitySubPredicate
EntitySubPredicate.Type, EntitySubPredicate.Types
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<ResourceLocation,
PlayerPredicate.AdvancementPredicate> 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> Fields inherited from interface net.minecraft.advancements.critereon.EntitySubPredicate
ANY
-
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.JsonObject p_222492_) private static <T> Stat<T>
getStat
(StatType<T> p_62268_, ResourceLocation p_62269_) private static <T> ResourceLocation
getStatValueId
(Stat<T> p_62266_) boolean
matches
(Entity p_222484_, ServerLevel p_222485_, Vec3 p_222486_) com.google.gson.JsonObject
type()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
matches
in interfaceEntitySubPredicate
-
fromJson
-
getStat
-
getStatValueId
-
serializeCustomData
public com.google.gson.JsonObject serializeCustomData()- Specified by:
serializeCustomData
in interfaceEntitySubPredicate
-
type
- Specified by:
type
in interfaceEntitySubPredicate
-