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(Holder<BannerPattern> pattern, DyeColor color)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<BannerPatterns.Layer> static final NetworkBuffer.Type<BannerPatterns.Layer> -
Constructor Summary
ConstructorsConstructorDescriptionLayer(Holder<BannerPattern> pattern, DyeColor color) Creates an instance of aLayerrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pattern()Returns the value of thepatternrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NETWORK_TYPE
-
CODEC
-
-
Constructor Details
-
Layer
Creates an instance of aLayerrecord class.- Parameters:
pattern- the value for thepatternrecord componentcolor- the value for thecolorrecord 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 thepatternrecord component.- Returns:
- the value of the
patternrecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-