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 DeprecatedTranslationsInfoprivate static final org.slf4j.LoggerThe field for theremovedrecord component.The field for therenamedrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyToMap(Map<String, String> pTranslations) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static DeprecatedTranslationsInfostatic DeprecatedTranslationsInfoloadFromJson(InputStream pInputStream) static DeprecatedTranslationsInfoloadFromResource(String pName) removed()Returns the value of theremovedrecord component.renamed()Returns the value of therenamedrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
removed
The field for theremovedrecord component. -
renamed
The field for therenamedrecord component. -
LOGGER
private static final org.slf4j.Logger LOGGER -
EMPTY
-
CODEC
-
-
Constructor Details
-
DeprecatedTranslationsInfo
Creates an instance of aDeprecatedTranslationsInforecord class.- Parameters:
removed- the value for theremovedrecord componentrenamed- the value for therenamedrecord 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 theremovedrecord component.- Returns:
- the value of the
removedrecord component
-
renamed
Returns the value of therenamedrecord component.- Returns:
- the value of the
renamedrecord component
-