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 official fzy$a$aintermediary net/minecraft/class_8690$class_8691$class_8692named net/minecraft/client/texture/Scaling$NineSlice$Borderofficial aintermediary comp_1640named leftofficial bintermediary comp_1641named topofficial cintermediary comp_1642named rightofficial dintermediary comp_1643named bottom
-
Field Summary
FieldsModifier 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 Summary
Constructors -
Method Summary
Modifier 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
-
left
private final int leftThe field for theleftrecord component. -
top
private final int topThe field for thetoprecord component. -
right
private final int rightThe field for therightrecord component. -
bottom
private final int bottomThe field for thebottomrecord component. -
UNIFORM_SIDE_SIZES_CODEC
private static final com.mojang.serialization.Codec<Scaling.NineSlice.Border> UNIFORM_SIDE_SIZES_CODEC- Mappings:
Namespace Name Mixin selector official eLfzy$a$a;e:Lcom/mojang/serialization/Codec;intermediary field_45651Lnet/minecraft/class_8690$class_8691$class_8692;field_45651:Lcom/mojang/serialization/Codec;named UNIFORM_SIDE_SIZES_CODECLnet/minecraft/client/texture/Scaling$NineSlice$Border;UNIFORM_SIDE_SIZES_CODEC:Lcom/mojang/serialization/Codec;
-
DIFFERENT_SIDE_SIZES_CODEC
private static final com.mojang.serialization.Codec<Scaling.NineSlice.Border> DIFFERENT_SIDE_SIZES_CODEC- Mappings:
Namespace Name Mixin selector official fLfzy$a$a;f:Lcom/mojang/serialization/Codec;intermediary field_45652Lnet/minecraft/class_8690$class_8691$class_8692;field_45652:Lcom/mojang/serialization/Codec;named DIFFERENT_SIDE_SIZES_CODECLnet/minecraft/client/texture/Scaling$NineSlice$Border;DIFFERENT_SIDE_SIZES_CODEC:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector official gLfzy$a$a;g:Lcom/mojang/serialization/Codec;intermediary field_45653Lnet/minecraft/class_8690$class_8691$class_8692;field_45653:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/client/texture/Scaling$NineSlice$Border;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Border
public Border(int int2, int int3, int int4, int int5)
-
-
Method Details
-
getUniformSideSize
- Mappings:
Namespace Name Mixin selector official eLfzy$a$a;e()Ljava/util/OptionalInt;intermediary method_52883Lnet/minecraft/class_8690$class_8691$class_8692;method_52883()Ljava/util/OptionalInt;named getUniformSideSizeLnet/minecraft/client/texture/Scaling$NineSlice$Border;getUniformSideSize()Ljava/util/OptionalInt;
-
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 with '=='. -
left
public int left()Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
top
public int top()Returns the value of thetoprecord component.- Returns:
- the value of the
toprecord component
-
right
public int right()Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-
bottom
public int bottom()Returns the value of thebottomrecord component.- Returns:
- the value of the
bottomrecord component
-