Package net.minecraft.loot
Class ValidationTracker
- java.lang.Object
-
- net.minecraft.loot.ValidationTracker
-
public class ValidationTracker extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Function<ResourceLocation,ILootCondition>
conditionResolver
private java.util.function.Supplier<java.lang.String>
context
private java.lang.String
contextCache
private LootParameterSet
params
private com.google.common.collect.Multimap<java.lang.String,java.lang.String>
problems
private java.util.function.Function<ResourceLocation,LootTable>
tableResolver
private java.util.Set<ResourceLocation>
visitedConditions
private java.util.Set<ResourceLocation>
visitedTables
-
Constructor Summary
Constructors Constructor Description ValidationTracker(com.google.common.collect.Multimap<java.lang.String,java.lang.String> p_i225888_1_, java.util.function.Supplier<java.lang.String> p_i225888_2_, LootParameterSet p_i225888_3_, java.util.function.Function<ResourceLocation,ILootCondition> p_i225888_4_, java.util.Set<ResourceLocation> p_i225888_5_, java.util.function.Function<ResourceLocation,LootTable> p_i225888_6_, java.util.Set<ResourceLocation> p_i225888_7_)
ValidationTracker(LootParameterSet p_i225889_1_, java.util.function.Function<ResourceLocation,ILootCondition> p_i225889_2_, java.util.function.Function<ResourceLocation,LootTable> p_i225889_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationTracker
enterCondition(java.lang.String p_227535_1_, ResourceLocation p_227535_2_)
ValidationTracker
enterTable(java.lang.String p_227531_1_, ResourceLocation p_227531_2_)
ValidationTracker
forChild(java.lang.String p_227534_1_)
private java.lang.String
getContext()
com.google.common.collect.Multimap<java.lang.String,java.lang.String>
getProblems()
boolean
hasVisitedCondition(ResourceLocation p_227536_1_)
boolean
hasVisitedTable(ResourceLocation p_227532_1_)
void
reportProblem(java.lang.String p_227530_1_)
ILootCondition
resolveCondition(ResourceLocation p_227541_1_)
LootTable
resolveLootTable(ResourceLocation p_227539_1_)
ValidationTracker
setParams(LootParameterSet p_227529_1_)
void
validateUser(IParameterized p_227528_1_)
-
-
-
Field Detail
-
problems
private final com.google.common.collect.Multimap<java.lang.String,java.lang.String> problems
-
context
private final java.util.function.Supplier<java.lang.String> context
-
params
private final LootParameterSet params
-
conditionResolver
private final java.util.function.Function<ResourceLocation,ILootCondition> conditionResolver
-
visitedConditions
private final java.util.Set<ResourceLocation> visitedConditions
-
tableResolver
private final java.util.function.Function<ResourceLocation,LootTable> tableResolver
-
visitedTables
private final java.util.Set<ResourceLocation> visitedTables
-
contextCache
private java.lang.String contextCache
-
-
Constructor Detail
-
ValidationTracker
public ValidationTracker(LootParameterSet p_i225889_1_, java.util.function.Function<ResourceLocation,ILootCondition> p_i225889_2_, java.util.function.Function<ResourceLocation,LootTable> p_i225889_3_)
-
ValidationTracker
public ValidationTracker(com.google.common.collect.Multimap<java.lang.String,java.lang.String> p_i225888_1_, java.util.function.Supplier<java.lang.String> p_i225888_2_, LootParameterSet p_i225888_3_, java.util.function.Function<ResourceLocation,ILootCondition> p_i225888_4_, java.util.Set<ResourceLocation> p_i225888_5_, java.util.function.Function<ResourceLocation,LootTable> p_i225888_6_, java.util.Set<ResourceLocation> p_i225888_7_)
-
-
Method Detail
-
getContext
private java.lang.String getContext()
-
reportProblem
public void reportProblem(java.lang.String p_227530_1_)
-
forChild
public ValidationTracker forChild(java.lang.String p_227534_1_)
-
enterTable
public ValidationTracker enterTable(java.lang.String p_227531_1_, ResourceLocation p_227531_2_)
-
enterCondition
public ValidationTracker enterCondition(java.lang.String p_227535_1_, ResourceLocation p_227535_2_)
-
hasVisitedTable
public boolean hasVisitedTable(ResourceLocation p_227532_1_)
-
hasVisitedCondition
public boolean hasVisitedCondition(ResourceLocation p_227536_1_)
-
getProblems
public com.google.common.collect.Multimap<java.lang.String,java.lang.String> getProblems()
-
validateUser
public void validateUser(IParameterized p_227528_1_)
-
resolveLootTable
@Nullable public LootTable resolveLootTable(ResourceLocation p_227539_1_)
-
resolveCondition
@Nullable public ILootCondition resolveCondition(ResourceLocation p_227541_1_)
-
setParams
public ValidationTracker setParams(LootParameterSet p_227529_1_)
-
-