Package net.minecraft.locale
Record Class DeprecatedTranslationsInfo
java.lang.Object
java.lang.Record
net.minecraft.locale.DeprecatedTranslationsInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<DeprecatedTranslationsInfo> static final DeprecatedTranslationsInfo
private static final org.slf4j.Logger
The field for theremoved
record component.The field for therenamed
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyToMap
(Map<String, String> p_364396_) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.static DeprecatedTranslationsInfo
static DeprecatedTranslationsInfo
loadFromJson
(InputStream p_362627_) static DeprecatedTranslationsInfo
loadFromResource
(String p_364845_) removed()
Returns the value of theremoved
record component.renamed()
Returns the value of therenamed
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
removed
The field for theremoved
record component. -
renamed
The field for therenamed
record component. -
LOGGER
private static final org.slf4j.Logger LOGGER -
EMPTY
-
CODEC
-
-
Constructor Details
-
DeprecatedTranslationsInfo
Creates an instance of aDeprecatedTranslationsInfo
record class.- Parameters:
removed
- the value for theremoved
record componentrenamed
- the value for therenamed
record component
-
-
Method Details
-
loadFromJson
-
loadFromResource
-
loadFromDefaultResource
-
applyToMap
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
removed
Returns the value of theremoved
record component.- Returns:
- the value of the
removed
record component
-
renamed
Returns the value of therenamed
record component.- Returns:
- the value of the
renamed
record component
-