mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-06-09 00:33:39 +08:00
0b5329514b
* Deserialization support for tsv files * Benchmarking * Apparently moving the setter out of the lambda fixed the setAccessible issue * Thread it * Use AllArgsConstructor instead of field reflection * Clean up AllArgsConstructor TSV deserialization * Refactor TsvUtils * Remove AllArgsConstructors from Excels * Set field accessible * [WIP] TSJ improvements * [WIP] More TSV stuff * [WIP] More TSV stuff * Working TSV parser (slow) * Load Excels in TSJ > JSON > TSV priority
14 lines
366 B
Java
14 lines
366 B
Java
package emu.grasscutter.game.props.ItemUseAction;
|
|
|
|
import lombok.Getter;
|
|
|
|
public abstract class ItemUseInt extends ItemUseAction {
|
|
@Getter protected int i = 0;
|
|
|
|
public ItemUseInt(String[] useParam) {
|
|
try {
|
|
this.i = Integer.parseInt(useParam[0]);
|
|
} catch (NumberFormatException | ArrayIndexOutOfBoundsException ignored) {}
|
|
}
|
|
}
|