Package net.minecraft.loot.functions
Class SetAttributes.Modifier
- java.lang.Object
-
- net.minecraft.loot.functions.SetAttributes.Modifier
-
- Enclosing class:
- SetAttributes
static class SetAttributes.Modifier extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private RandomValueRange
amount
private Attribute
attribute
private java.util.UUID
id
private java.lang.String
name
private AttributeModifier.Operation
operation
private EquipmentSlotType[]
slots
-
Constructor Summary
Constructors Modifier Constructor Description private
Modifier(java.lang.String p_i232172_1_, Attribute p_i232172_2_, AttributeModifier.Operation p_i232172_3_, RandomValueRange p_i232172_4_, EquipmentSlotType[] p_i232172_5_, java.util.UUID p_i232172_6_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SetAttributes.Modifier
deserialize(com.google.gson.JsonObject p_186586_0_, com.google.gson.JsonDeserializationContext p_186586_1_)
private static AttributeModifier.Operation
operationFromString(java.lang.String p_216246_0_)
private static java.lang.String
operationToString(AttributeModifier.Operation p_216244_0_)
com.google.gson.JsonObject
serialize(com.google.gson.JsonSerializationContext p_186592_1_)
-
-
-
Field Detail
-
name
private final java.lang.String name
-
attribute
private final Attribute attribute
-
operation
private final AttributeModifier.Operation operation
-
amount
private final RandomValueRange amount
-
id
@Nullable private final java.util.UUID id
-
slots
private final EquipmentSlotType[] slots
-
-
Constructor Detail
-
Modifier
private Modifier(java.lang.String p_i232172_1_, Attribute p_i232172_2_, AttributeModifier.Operation p_i232172_3_, RandomValueRange p_i232172_4_, EquipmentSlotType[] p_i232172_5_, @Nullable java.util.UUID p_i232172_6_)
-
-
Method Detail
-
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
private static java.lang.String operationToString(AttributeModifier.Operation p_216244_0_)
-
operationFromString
private static AttributeModifier.Operation operationFromString(java.lang.String p_216246_0_)
-
-