Package net.minecraft.client.texture
Record Class Scaling.NineSlice.Border
java.lang.Object
java.lang.Record
net.minecraft.client.texture.Scaling.NineSlice.Border
- Record Components:
- left-
- top-
- right-
- bottom-
- Enclosing class:
- Scaling.NineSlice
@Environment(CLIENT)
public static record Scaling.NineSlice.Border(int left, int top, int right, int bottom)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/client/texture/Scaling$NineSlice$Border- intermediary - net/minecraft/class_8690$class_8691$class_8692- official - hmi$a$a- named - left- intermediary - comp_1640- official - a- named - top- intermediary - comp_1641- official - b- named - right- intermediary - comp_1642- official - c- named - bottom- intermediary - comp_1643- official - d
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final intThe field for thebottomrecord component.(package private) static final com.mojang.serialization.Codec<Scaling.NineSlice.Border> private static final com.mojang.serialization.Codec<Scaling.NineSlice.Border> private final intThe field for theleftrecord component.private final intThe field for therightrecord component.private final intThe field for thetoprecord component.private static final com.mojang.serialization.Codec<Scaling.NineSlice.Border> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintbottom()Returns the value of thebottomrecord component.final booleanIndicates whether some other object is "equal to" this one.private OptionalIntfinal inthashCode()Returns a hash code value for this object.intleft()Returns the value of theleftrecord component.intright()Returns the value of therightrecord component.inttop()Returns the value of thetoprecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
leftprivate final int leftThe field for theleftrecord component.
- 
topprivate final int topThe field for thetoprecord component.
- 
rightprivate final int rightThe field for therightrecord component.
- 
bottomprivate final int bottomThe field for thebottomrecord component.
- 
UNIFORM_SIDE_SIZES_CODECprivate static final com.mojang.serialization.Codec<Scaling.NineSlice.Border> UNIFORM_SIDE_SIZES_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - UNIFORM_SIDE_SIZES_CODEC- Lnet/minecraft/client/texture/Scaling$NineSlice$Border;UNIFORM_SIDE_SIZES_CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_45651- Lnet/minecraft/class_8690$class_8691$class_8692;field_45651:Lcom/mojang/serialization/Codec;- official - e- Lhmi$a$a;e:Lcom/mojang/serialization/Codec;
 
- 
DIFFERENT_SIDE_SIZES_CODECprivate static final com.mojang.serialization.Codec<Scaling.NineSlice.Border> DIFFERENT_SIDE_SIZES_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - DIFFERENT_SIDE_SIZES_CODEC- Lnet/minecraft/client/texture/Scaling$NineSlice$Border;DIFFERENT_SIDE_SIZES_CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_45652- Lnet/minecraft/class_8690$class_8691$class_8692;field_45652:Lcom/mojang/serialization/Codec;- official - f- Lhmi$a$a;f:Lcom/mojang/serialization/Codec;
 
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/client/texture/Scaling$NineSlice$Border;CODEC:Lcom/mojang/serialization/Codec;- intermediary - field_45653- Lnet/minecraft/class_8690$class_8691$class_8692;field_45653:Lcom/mojang/serialization/Codec;- official - g- Lhmi$a$a;g:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
Borderpublic Border(int int2, int int3, int int4, int int5) 
 
- 
- 
Method Details- 
getUniformSideSize- Mappings:
- Namespace - Name - Mixin selector - named - getUniformSideSize- Lnet/minecraft/client/texture/Scaling$NineSlice$Border;getUniformSideSize()Ljava/util/OptionalInt;- intermediary - method_52883- Lnet/minecraft/class_8690$class_8691$class_8692;method_52883()Ljava/util/OptionalInt;- official - e- Lhmi$a$a;e()Ljava/util/OptionalInt;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 with '=='.
- 
leftpublic int left()Returns the value of theleftrecord component.- Returns:
- the value of the leftrecord component
 
- 
toppublic int top()Returns the value of thetoprecord component.- Returns:
- the value of the toprecord component
 
- 
rightpublic int right()Returns the value of therightrecord component.- Returns:
- the value of the rightrecord component
 
- 
bottompublic int bottom()Returns the value of thebottomrecord component.- Returns:
- the value of the bottomrecord component
 
 
-