Record Class BannerPatterns.Layer
java.lang.Object
java.lang.Record
net.minestom.server.item.component.BannerPatterns.Layer
- Enclosing class:
BannerPatterns
public static record BannerPatterns.Layer(@NotNull Holder<BannerPattern> pattern, @NotNull DyeColor color)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec
<BannerPatterns.Layer> static final NetworkBuffer.Type
<BannerPatterns.Layer> -
Constructor Summary
ConstructorsConstructorDescriptionLayer
(@NotNull Holder<BannerPattern> pattern, @NotNull DyeColor color) Creates an instance of aLayer
record class. -
Method Summary
Modifier and TypeMethodDescription@NotNull DyeColor
color()
Returns the value of thecolor
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull Holder
<BannerPattern> pattern()
Returns the value of thepattern
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
NETWORK_TYPE
-
CODEC
-
-
Constructor Details
-
Layer
Creates an instance of aLayer
record class.- Parameters:
pattern
- the value for thepattern
record componentcolor
- the value for thecolor
record component
-
-
Method Details
-
toString
-
hashCode
-
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)
. -
pattern
Returns the value of thepattern
record component.- Returns:
- the value of the
pattern
record component
-
color
Returns the value of thecolor
record component.- Returns:
- the value of the
color
record component
-