You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public record ToolStatVariable(INumericToolStat<?> stat) implements ToolVariable {
public static final RecordLoadable<ToolStatVariable> LOADER = RecordLoadable.create(ToolStats.NUMERIC_LOADER.field("stat", ToolStatVariable::stat), ToolStatVariable::new);
@Override
public float getValue(IToolStackView tool) {
return tool.getStats().get(stat).floatValue();
}
@Override
public IGenericLoader<? extends ToolVariable> getLoader() {