Class RedirectedClothingItem
public class RedirectedClothingItem : IRedirectedItem, IClothingItem, IItem, IEquatable<IItem>, ITranslationArgument
- Inheritance
-
RedirectedClothingItem
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
RedirectedClothingItem()
public RedirectedClothingItem()
RedirectedClothingItem(ClothingType, RedirectType, string?)
public RedirectedClothingItem(ClothingType clothingType, RedirectType item, string? variant)
Parameters
clothingTypeClothingTypeitemRedirectTypevariantstring
Properties
ClothingType
public ClothingType ClothingType { get; init; }
Property Value
Item
public RedirectType Item { get; init; }
Property Value
Variant
public string? Variant { get; init; }
Property Value
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
Equals(IItem?)
Indicates whether the current object is equal to another object of the same type.
public virtual bool Equals(IItem? other)
Parameters
otherIItemAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Translate(ITranslationValueFormatter, in ValueFormatParameters)
Allows objects to define how they're translated in their own definition instead of creating a value converter.
public string Translate(ITranslationValueFormatter formatter, in ValueFormatParameters parameters)
Parameters
formatterITranslationValueFormatterparametersValueFormatParameters