mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 22:15:06 +00:00
Magic for PlayerData and NPCs
This commit is contained in:
1 parent
d4eddf4551
commit
7a16cdf520
7 files changed
+178
-70
No files matched your search
@@ -0,0 +1,20 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user