JSON Stuff (#9933)
* why is everything- * don't shrink * they're different???????? * varabel * i cannot ignore it * check * a * missing ops
This commit is contained in:
@@ -954,6 +954,8 @@ public class ContentParser{
|
||||
case "min" -> base.min(parser.readValue(PartProgress.class, data.get("other")));
|
||||
case "sin" -> base.sin(data.has("offset") ? data.getFloat("offset") : 0f, data.getFloat("scl"), data.getFloat("mag"));
|
||||
case "absin" -> base.absin(data.getFloat("scl"), data.getFloat("mag"));
|
||||
case "mod" -> base.mod(data.getFloat("amount"));
|
||||
case "loop" -> base.loop(data.getFloat("time"));
|
||||
case "curve" -> data.has("interp") ? base.curve(parser.readValue(Interp.class, data.get("interp"))) : base.curve(data.getFloat("offset"), data.getFloat("duration"));
|
||||
default -> throw new RuntimeException("Unknown operation '" + op + "', check PartProgress class for a list of methods.");
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user