@Override public BaseComponent duplicate() { return new KeybindComponent( this ); }
@Override public KeybindComponent deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { KeybindComponent component = new KeybindComponent(); JsonObject object = json.getAsJsonObject(); deserialize( object, component, context ); component.setKeybind( object.get( "keybind" ).getAsString() ); return component; }