Package net.minecraft.client.font
Record Class UnihexFont.FontImage16x16
java.lang.Object
java.lang.Record
net.minecraft.client.font.UnihexFont.FontImage16x16
- Record Components:
contents-
- All Implemented Interfaces:
UnihexFont.BitmapGlyph
- Enclosing class:
UnihexFont
@Environment(CLIENT)
private static record UnihexFont.FontImage16x16(short[] contents)
extends Record
implements UnihexFont.BitmapGlyph
- Mappings:
Namespace Name official ers$iintermediary net/minecraft/class_391$class_8547named net/minecraft/client/font/UnihexFont$FontImage16x16official aintermediary comp_1516named contents
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbitWidth()short[]contents()Returns the value of thecontentsrecord component.final booleanIndicates whether some other object is "equal to" this one.intgetPixels(int y) final inthashCode()Returns a hash code value for this object.(package private) static UnihexFont.BitmapGlyphfinal StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.font.UnihexFont.BitmapGlyph
getNonemptyColumnBitmask, getPackedDimensions
-
Field Details
-
contents
private final short[] contentsThe field for thecontentsrecord component.
-
-
Constructor Details
-
FontImage16x16
private FontImage16x16(short[] short2)
-
-
Method Details
-
getPixels
public int getPixels(int y) - Specified by:
getPixelsin interfaceUnihexFont.BitmapGlyph- Mappings:
Namespace Name Mixin selector official aLers$f;a(I)Iintermediary method_51668Lnet/minecraft/class_391$class_8544;method_51668(I)Inamed getPixelsLnet/minecraft/client/font/UnihexFont$BitmapGlyph;getPixels(I)I
-
read
- Mappings:
Namespace Name Mixin selector official aLers$i;a(ILit/unimi/dsi/fastutil/bytes/ByteList;)Lers$f;intermediary method_51683Lnet/minecraft/class_391$class_8547;method_51683(ILit/unimi/dsi/fastutil/bytes/ByteList;)Lnet/minecraft/class_391$class_8544;named readLnet/minecraft/client/font/UnihexFont$FontImage16x16;read(ILit/unimi/dsi/fastutil/bytes/ByteList;)Lnet/minecraft/client/font/UnihexFont$BitmapGlyph;
-
bitWidth
public int bitWidth()- Specified by:
bitWidthin interfaceUnihexFont.BitmapGlyph- Mappings:
Namespace Name Mixin selector official aLers$f;a()Iintermediary comp_1512Lnet/minecraft/class_391$class_8544;comp_1512()Inamed bitWidthLnet/minecraft/client/font/UnihexFont$BitmapGlyph;bitWidth()I
-
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). -
contents
public short[] contents()Returns the value of thecontentsrecord component.- Returns:
- the value of the
contentsrecord component
-