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