Package net.minecraft.loot.functions
Class SetAttributes.Modifier
java.lang.Object
net.minecraft.loot.functions.SetAttributes.Modifier
- Enclosing class:
- SetAttributes
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RandomValueRange
private final Attribute
private final UUID
private final String
private final AttributeModifier.Operation
private final EquipmentSlotType[]
-
Constructor Summary
ModifierConstructorDescriptionprivate
Modifier
(String p_i232172_1_, Attribute p_i232172_2_, AttributeModifier.Operation p_i232172_3_, RandomValueRange p_i232172_4_, EquipmentSlotType[] p_i232172_5_, UUID p_i232172_6_) -
Method Summary
Modifier and TypeMethodDescriptionstatic SetAttributes.Modifier
deserialize
(com.google.gson.JsonObject p_186586_0_, com.google.gson.JsonDeserializationContext p_186586_1_) private static AttributeModifier.Operation
operationFromString
(String p_216246_0_) private static String
operationToString
(AttributeModifier.Operation p_216244_0_) com.google.gson.JsonObject
serialize
(com.google.gson.JsonSerializationContext p_186592_1_)
-
Field Details
-
name
-
attribute
-
operation
-
amount
-
id
-
slots
-
-
Constructor Details
-
Modifier
private Modifier(String p_i232172_1_, Attribute p_i232172_2_, AttributeModifier.Operation p_i232172_3_, RandomValueRange p_i232172_4_, EquipmentSlotType[] p_i232172_5_, @Nullable UUID p_i232172_6_)
-
-
Method Details
-
serialize
public com.google.gson.JsonObject serialize(com.google.gson.JsonSerializationContext p_186592_1_) -
deserialize
public static SetAttributes.Modifier deserialize(com.google.gson.JsonObject p_186586_0_, com.google.gson.JsonDeserializationContext p_186586_1_) -
operationToString
-
operationFromString
-