@Override public void writeToNBT(NBTTagCompound compound) { super.writeToNBT(compound); compound.setString("SpellScript", Strings.join(script.getChant(), " ")); compound.setFloat("MagicEnergy", energy); NBTUtils.convertFacingToTag(compound, this.direction); }
public WardEntity setSpell(Collection<String> spell) { this.script = new ScriptInstance(this, ScriptInstance.getStringFrom(spell)); return this; }
public WardEntity setSpell(String[] spell) { this.script = new ScriptInstance(this, ScriptInstance.getStringFrom(spell)); return this; }
public WardEntity(List<String> argsIn, float energy) { script = new ScriptInstance(this, ScriptInstance.getStringFrom(argsIn)); this.energy = energy; }