public void setUUID(@Nonnull UUID id) { Preconditions.checkNotNull("id", "id cannot be NULL."); data.put("UUIDLeast", id.getLeastSignificantBits()); data.put("UUIDMost", id.getMostSignificantBits()); }
public void setName(@Nonnull String name) { Preconditions.checkNotNull(name, "name cannot be NULL."); data.put("Name", name); }
public void setOperation(@Nonnull Operation operation) { Preconditions.checkNotNull(operation, "operation cannot be NULL."); data.put("Operation", operation.getId()); }
public void setAttributeType(@Nonnull AttributeType type) { Preconditions.checkNotNull(type, "type cannot be NULL."); data.put("AttributeName", type.getMinecraftId()); }
public void setAmount(double amount) { data.put("Amount", amount); }