Record Class BannerPatterns
java.lang.Object
java.lang.Record
net.minestom.server.item.component.BannerPatterns
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Codec<BannerPatterns> static final intstatic final NetworkBuffer.Type<BannerPatterns> -
Constructor Summary
ConstructorsConstructorDescriptionBannerPatterns(List<BannerPatterns.Layer> layers) Creates an instance of aBannerPatternsrecord class.BannerPatterns(Holder<BannerPattern> pattern, DyeColor color) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.layers()Returns the value of thelayersrecord component.final StringtoString()Returns a string representation of this record class.with(BannerPatterns.Layer layer)
-
Field Details
-
MAX_LAYERS
public static final int MAX_LAYERS- See Also:
-
NETWORK_TYPE
-
CODEC
-
-
Constructor Details
-
BannerPatterns
Creates an instance of aBannerPatternsrecord class.- Parameters:
layers- the value for thelayersrecord component
-
BannerPatterns
-
BannerPatterns
-
-
Method Details
-
with
-
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). -
layers
Returns the value of thelayersrecord component.- Returns:
- the value of the
layersrecord component
-