コード例 #1
0
 @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);
 }
コード例 #2
0
 public WardEntity setSpell(Collection<String> spell) {
   this.script = new ScriptInstance(this, ScriptInstance.getStringFrom(spell));
   return this;
 }
コード例 #3
0
 public WardEntity setSpell(String[] spell) {
   this.script = new ScriptInstance(this, ScriptInstance.getStringFrom(spell));
   return this;
 }
コード例 #4
0
 public WardEntity(List<String> argsIn, float energy) {
   script = new ScriptInstance(this, ScriptInstance.getStringFrom(argsIn));
   this.energy = energy;
 }