Package ch.njol.yggdrasil

Examples of ch.njol.yggdrasil.Fields


    return info.equals(other.info);
  }
 
  @Override
  public Fields serialize() throws NotSerializableException {
    final Fields f = super.serialize();
    f.putObject("info.codeName", info.codeName);
    return f;
  }
View Full Code Here


      meta = ConfigurationSerializer.deserializeCS(m, ItemMeta.class);
  }
 
  @Override
  public Fields serialize() throws NotSerializableException {
    final Fields f = new Fields(this);
    // both are serialisable with Yggdrasil
    f.putObject("enchantments", enchantments);
    f.putObject("meta", meta);
    return f;
  }
View Full Code Here

 
  public abstract boolean isSupertypeOf(EntityData<?> e);
 
  @Override
  public Fields serialize() throws NotSerializableException {
    return new Fields(this);
  }
View Full Code Here

 
  @Override
  public Fields serialize(final T o) throws NotSerializableException {
    if (o instanceof YggdrasilExtendedSerializable)
      return ((YggdrasilExtendedSerializable) o).serialize();
    return new Fields(o);
  }
View Full Code Here

*/
public class ConfigurationSerializer<T extends ConfigurationSerializable> extends Serializer<T> {
 
  @Override
  public Fields serialize(final T o) throws NotSerializableException {
    final Fields f = new Fields();
    f.putObject("value", serializeCS(o));
    return f;
  }
View Full Code Here

      return "" + faction.getName();
    }
   
    @Override
    public Fields serialize() {
      final Fields fields = new Fields();
      fields.putObject("universe", faction.getUniverse());
      fields.putObject("id", faction.getId());
      return fields;
    }
View Full Code Here

          });
    }
   
    @Override
    public Fields serialize() {
      final Fields f = new Fields();
      f.putObject("block", field.getBlock());
      return f;
    }
View Full Code Here

    }
   
    @SuppressWarnings("null")
    @Override
    public Fields serialize() {
      final Fields f = new Fields();
      f.putPrimitive("id", claim.getID());
      return f;
    }
View Full Code Here

//      };
    }
   
    @Override
    public Fields serialize() throws NotSerializableException {
      final Fields f = new Fields(this);
      f.putObject("region", region.getId());
      return f;
    }
View Full Code Here

TOP

Related Classes of ch.njol.yggdrasil.Fields

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.