mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 10:47:30 +00:00
21 lines
519 B
Java
21 lines
519 B
Java
package noppes.npcs.controllers.data;
|
|
|
|
import net.minecraft.nbt.NBTTagCompound;
|
|
|
|
public class MagicEntry {
|
|
public float damage;
|
|
public float split;
|
|
|
|
public NBTTagCompound writeToNBT() {
|
|
NBTTagCompound compound = new NBTTagCompound();
|
|
compound.setFloat("Dmg", damage);
|
|
compound.setFloat("Split", split);
|
|
return compound;
|
|
}
|
|
|
|
public void readToNBT(NBTTagCompound compound) {
|
|
damage = compound.getFloat("Dmg");
|
|
split = compound.getFloat("Split");
|
|
}
|
|
}
|