示例#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());
 }
示例#2
0
 public void setName(@Nonnull String name) {
   Preconditions.checkNotNull(name, "name cannot be NULL.");
   data.put("Name", name);
 }
示例#3
0
 public void setOperation(@Nonnull Operation operation) {
   Preconditions.checkNotNull(operation, "operation cannot be NULL.");
   data.put("Operation", operation.getId());
 }
示例#4
0
 public void setAttributeType(@Nonnull AttributeType type) {
   Preconditions.checkNotNull(type, "type cannot be NULL.");
   data.put("AttributeName", type.getMinecraftId());
 }
示例#5
0
 public void setAmount(double amount) {
   data.put("Amount", amount);
 }