Class PlayerPredicate.Builder
java.lang.Object
net.minecraft.advancements.critereon.PlayerPredicate.Builder
- Enclosing class:
PlayerPredicate
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Map<ResourceLocation,
PlayerPredicate.AdvancementPredicate> private MinMaxBounds.Ints
private Optional<EntityPredicate>
private final it.unimi.dsi.fastutil.objects.Object2BooleanMap<ResourceLocation>
private final com.google.common.collect.ImmutableList.Builder<PlayerPredicate.StatMatcher<?>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddRecipe
(ResourceLocation p_156781_, boolean p_156782_) addStat
(StatType<T> p_299266_, Holder.Reference<T> p_299053_, MinMaxBounds.Ints p_156770_) build()
checkAdvancementCriterions
(ResourceLocation p_156778_, Map<String, Boolean> p_156779_) checkAdvancementDone
(ResourceLocation p_156784_, boolean p_156785_) static PlayerPredicate.Builder
player()
setGameType
(GameType p_156774_) setLevel
(MinMaxBounds.Ints p_156776_) setLookingAt
(EntityPredicate.Builder p_301131_)
-
Field Details
-
level
-
gameType
-
stats
-
recipes
-
advancements
-
lookingAt
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
player
-
setLevel
-
addStat
public <T> PlayerPredicate.Builder addStat(StatType<T> p_299266_, Holder.Reference<T> p_299053_, MinMaxBounds.Ints p_156770_) -
addRecipe
-
setGameType
-
setLookingAt
-
checkAdvancementDone
-
checkAdvancementCriterions
public PlayerPredicate.Builder checkAdvancementCriterions(ResourceLocation p_156778_, Map<String, Boolean> p_156779_) -
build
-