Class SetAttributesFunction.Modifier
java.lang.Object
net.minecraft.world.level.storage.loot.functions.SetAttributesFunction.Modifier
- Enclosing class:
- SetAttributesFunction
-
Field Summary
Modifier and TypeFieldDescription(package private) NumberProvider
(package private) Attribute
(package private) UUID
(package private) String
(package private) AttributeModifier.Operation
(package private) EquipmentSlot[]
-
Constructor Summary
ConstructorDescriptionModifier(String p_165250_, Attribute p_165251_, AttributeModifier.Operation p_165252_, NumberProvider p_165253_, EquipmentSlot[] p_165254_, UUID p_165255_)
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonObject p_80863_, com.google.gson.JsonDeserializationContext p_80864_)
private static AttributeModifier.Operation
operationFromString(String p_80870_)
private static String
operationToString(AttributeModifier.Operation p_80861_)
com.google.gson.JsonObject
serialize(com.google.gson.JsonSerializationContext p_80866_)
-
Field Details
-
name
-
attribute
-
operation
-
amount
-
id
-
slots
-
-
Constructor Details
-
Modifier
Modifier(String p_165250_, Attribute p_165251_, AttributeModifier.Operation p_165252_, NumberProvider p_165253_, EquipmentSlot[] p_165254_, @Nullable UUID p_165255_)
-
-
Method Details
-
serialize
public com.google.gson.JsonObject serialize(com.google.gson.JsonSerializationContext p_80866_) -
deserialize
public static SetAttributesFunction.Modifier deserialize(com.google.gson.JsonObject p_80863_, com.google.gson.JsonDeserializationContext p_80864_) -
operationToString
-
operationFromString
-