Merge branch 'dev' into syntax-highlighter-unified

This commit is contained in:
bigguy345 committed 2026-03-06 23:46:16 +02:00
commit dabaab7675
39 files changed
+4371 -340

No files matched your search

@@ -0,0 +1,31 @@
package noppes.npcs.controllers.data;
import net.minecraft.nbt.NBTTagCompound;
/**
* Simple category data class for the generic category system.
* Used by CategoryManager to organize items into named groups.
*/
public class Category {
public int id = -1;
public String title = "";
public Category() {
}
public Category(int id, String title) {
this.id = id;
this.title = title;
}
public void readNBT(NBTTagCompound compound) {
id = compound.getInteger("CatID");
title = compound.getString("CatTitle");
}
public NBTTagCompound writeNBT(NBTTagCompound compound) {
compound.setInteger("CatID", id);
compound.setString("CatTitle", title);
return compound;
}
}