mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-30 12:29:16 +00:00
clean: convert MenuItem to record
This commit is contained in:
@@ -6,34 +6,6 @@ import org.spongepowered.configurate.ConfigurationNode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class MenuItem {
|
||||
|
||||
private List<Integer> slots;
|
||||
private ItemStack item;
|
||||
private Type type;
|
||||
private ConfigurationNode itemConfig;
|
||||
|
||||
public MenuItem(List<Integer> slots, ItemStack item, Type type, ConfigurationNode itemConfig) {
|
||||
this.slots = slots;
|
||||
this.item = item;
|
||||
this.type = type;
|
||||
this.itemConfig = itemConfig;
|
||||
}
|
||||
|
||||
public List<Integer> getSlots() {
|
||||
return slots;
|
||||
}
|
||||
|
||||
public ItemStack getItem() {
|
||||
return item;
|
||||
}
|
||||
|
||||
public Type getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public ConfigurationNode getItemConfig() {
|
||||
return itemConfig;
|
||||
}
|
||||
public record MenuItem(List<Integer> slots, ItemStack item, Type type, ConfigurationNode itemConfig) {
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user