static class SetAttributesLootFunction.Attribute extends Object
Modifier and Type | Field and Description |
---|---|
private UniformLootTableRange |
amountRange |
private EntityAttribute |
attribute |
private UUID |
id |
private String |
name |
private EntityAttributeModifier.Operation |
operation |
private EquipmentSlot[] |
slots |
Modifier | Constructor and Description |
---|---|
private |
Attribute(String name,
EntityAttribute entityAttribute,
EntityAttributeModifier.Operation operation,
UniformLootTableRange amountRange,
EquipmentSlot[] slots,
UUID id) |
Modifier and Type | Method and Description |
---|---|
static SetAttributesLootFunction.Attribute |
deserialize(JsonObject json,
JsonDeserializationContext context) |
private static EntityAttributeModifier.Operation |
fromName(String name) |
private static String |
getName(EntityAttributeModifier.Operation operation) |
JsonObject |
serialize(JsonSerializationContext context) |
private final String name
private final EntityAttribute attribute
private final EntityAttributeModifier.Operation operation
private final UniformLootTableRange amountRange
private final EquipmentSlot[] slots
private Attribute(String name, EntityAttribute entityAttribute, EntityAttributeModifier.Operation operation, UniformLootTableRange amountRange, EquipmentSlot[] slots, @Nullable UUID id)
public JsonObject serialize(JsonSerializationContext context)
public static SetAttributesLootFunction.Attribute deserialize(JsonObject json, JsonDeserializationContext context)
private static String getName(EntityAttributeModifier.Operation operation)
private static EntityAttributeModifier.Operation fromName(String name)