static class SetAttributes.Modifier
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private RandomValueRange |
amount |
private java.lang.String |
attributeName |
private java.lang.String |
modifierName |
private int |
operation |
private EntityEquipmentSlot[] |
slots |
private java.util.UUID |
uuid |
Modifier | Constructor and Description |
---|---|
private |
Modifier(java.lang.String modifName,
java.lang.String attrName,
int operationIn,
RandomValueRange randomAmount,
EntityEquipmentSlot[] slotsIn,
java.util.UUID uuidIn) |
Modifier and Type | Method and Description |
---|---|
static SetAttributes.Modifier |
deserialize(com.google.gson.JsonObject jsonObj,
com.google.gson.JsonDeserializationContext context) |
private static int |
getOperationFromInt(java.lang.String operationIn) |
private static java.lang.String |
getOperationFromStr(int operationIn) |
com.google.gson.JsonObject |
serialize(com.google.gson.JsonSerializationContext context) |
private final java.lang.String modifierName
private final java.lang.String attributeName
private final int operation
private final RandomValueRange amount
@Nullable private final java.util.UUID uuid
private final EntityEquipmentSlot[] slots
private Modifier(java.lang.String modifName, java.lang.String attrName, int operationIn, RandomValueRange randomAmount, EntityEquipmentSlot[] slotsIn, @Nullable java.util.UUID uuidIn)
public com.google.gson.JsonObject serialize(com.google.gson.JsonSerializationContext context)
public static SetAttributes.Modifier deserialize(com.google.gson.JsonObject jsonObj, com.google.gson.JsonDeserializationContext context)
private static java.lang.String getOperationFromStr(int operationIn)
private static int getOperationFromInt(java.lang.String operationIn)