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 gsd$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 Summary
Modifier and TypeFieldDescriptionprivate final int
The field for thebottom
record component.(package private) static final com.mojang.serialization.Codec
<Scaling.NineSlice.Border> private static final com.mojang.serialization.Codec
<Scaling.NineSlice.Border> private final int
The field for theleft
record component.private final int
The field for theright
record component.private final int
The field for thetop
record component.private static final com.mojang.serialization.Codec
<Scaling.NineSlice.Border> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
bottom()
Returns the value of thebottom
record component.final boolean
Indicates whether some other object is "equal to" this one.private OptionalInt
final int
hashCode()
Returns a hash code value for this object.int
left()
Returns the value of theleft
record component.int
right()
Returns the value of theright
record component.int
top()
Returns the value of thetop
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
left
private final int leftThe field for theleft
record component. -
top
private final int topThe field for thetop
record component. -
right
private final int rightThe field for theright
record component. -
bottom
private final int bottomThe field for thebottom
record component. -
UNIFORM_SIDE_SIZES_CODEC
private 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
Lgsd$a$a;e: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 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
Lgsd$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
Lgsd$a$a;g: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 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
Lgsd$a$a;e()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 theleft
record component.- Returns:
- the value of the
left
record component
-
top
public int top()Returns the value of thetop
record component.- Returns:
- the value of the
top
record component
-
right
public int right()Returns the value of theright
record component.- Returns:
- the value of the
right
record component
-
bottom
public int bottom()Returns the value of thebottom
record component.- Returns:
- the value of the
bottom
record component
-