1
0
forked from Clones/Controlify

expose YACL option gen to bindings

This commit is contained in:
isXander
2023-04-14 20:28:57 +01:00
parent abe6b27cef
commit 9d7d8a9ff3
3 changed files with 29 additions and 27 deletions

View File

@ -1,6 +1,7 @@
package dev.isxander.controlify.api.bind;
import com.google.gson.JsonObject;
import dev.isxander.yacl.api.Option;
import net.minecraft.client.KeyMapping;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;
@ -30,6 +31,8 @@ public interface ControllerBinding {
BindRenderer renderer();
Option<?> generateYACLOption();
JsonObject toJson();
record KeyMappingOverride(KeyMapping keyMapping, BooleanSupplier toggleable) {