Skip to content

Commit

Permalink
added AConfigSection#builtBaseEnvironment
Browse files Browse the repository at this point in the history
  • Loading branch information
BlvckBytes committed Oct 9, 2024
1 parent 380466b commit 9e9804b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
package me.blvckbytes.bbconfigmapper.sections;

import me.blvckbytes.gpeee.interpreter.EvaluationEnvironmentBuilder;
import me.blvckbytes.gpeee.interpreter.IEvaluationEnvironment;
import org.jetbrains.annotations.Nullable;

import java.lang.reflect.Field;
Expand All @@ -45,11 +46,13 @@ public DefaultSupplier(Supplier<Object> supplier, Set<String> fieldExceptions) {
}

private final EvaluationEnvironmentBuilder baseEnvironment;
public final IEvaluationEnvironment builtBaseEnvironment;
private final Map<Class<?>, DefaultSupplier> fieldDefaultSuppliers;

public AConfigSection(EvaluationEnvironmentBuilder baseEnvironment) {
this.fieldDefaultSuppliers = new HashMap<>();
this.baseEnvironment = baseEnvironment;
this.builtBaseEnvironment = baseEnvironment.build();
}

public EvaluationEnvironmentBuilder getBaseEnvironment() {
Expand Down

0 comments on commit 9e9804b

Please sign in to comment.