Package net.minecraft.client.font
Record Class ReferenceFont
java.lang.Object
java.lang.Record
net.minecraft.client.font.ReferenceFont
- Record Components:
id-
- All Implemented Interfaces:
FontLoader
@Environment(CLIENT)
public record ReferenceFont(Identifier id)
extends Record
implements FontLoader
- Mappings:
Namespace Name named net/minecraft/client/font/ReferenceFontintermediary net/minecraft/class_8541official flqnamed idintermediary comp_1523official c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.font.FontLoader
FontLoader.Loadable, FontLoader.Provider, FontLoader.Reference -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ReferenceFont> private final IdentifierThe field for theidrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aReferenceFontrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.datafixers.util.Either<FontLoader.Loadable, FontLoader.Reference> build()final booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/font/ReferenceFont;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_44762Lnet/minecraft/class_8541;field_44762:Lcom/mojang/serialization/MapCodec;official aLflq;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
ReferenceFont
Creates an instance of aReferenceFontrecord class.- Parameters:
id- the value for theidrecord component
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceFontLoader- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/client/font/FontLoader;getType()Lnet/minecraft/client/font/FontType;intermediary method_51731Lnet/minecraft/class_389;method_51731()Lnet/minecraft/class_394;official aLflo;a()Lflp;
-
build
- Specified by:
buildin interfaceFontLoader- Mappings:
Namespace Name Mixin selector named buildLnet/minecraft/client/font/FontLoader;build()Lcom/mojang/datafixers/util/Either;intermediary method_51734Lnet/minecraft/class_389;method_51734()Lcom/mojang/datafixers/util/Either;official bLflo;b()Lcom/mojang/datafixers/util/Either;
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-