Package net.minestom.server.item.banner
Record Class BannerPatternImpl
java.lang.Object
java.lang.Record
net.minestom.server.item.banner.BannerPatternImpl
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed,BannerPattern,ProtocolObject,StaticProtocolObject
public record BannerPatternImpl(NamespaceID namespace, int id, String identifier)
extends Record
implements BannerPattern
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPatternstatic final BannerPattern -
Constructor Summary
ConstructorsConstructorDescriptionBannerPatternImpl(NamespaceID namespace, int id, String identifier) Creates an instance of aBannerPatternImplrecord class. -
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.intid()Returns the value of theidrecord component.Returns the value of theidentifierrecord component.Returns the value of thenamespacerecord component.toString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minestom.server.item.banner.BannerPattern
keyMethods inherited from interface net.minestom.server.registry.ProtocolObject
name
-
Field Details
-
BASE
-
SQUARE_BOTTOM_LEFT
-
SQUARE_BOTTOM_RIGHT
-
SQUARE_TOP_LEFT
-
SQUARE_TOP_RIGHT
-
STRIPE_BOTTOM
-
STRIPE_TOP
-
STRIPE_LEFT
-
STRIPE_RIGHT
-
STRIPE_CENTER
-
STRIPE_MIDDLE
-
STRIPE_DOWNRIGHT
-
STRIPE_DOWNLEFT
-
SMALL_STRIPES
-
CROSS
-
STRAIGHT_CROSS
-
TRIANGLE_BOTTOM
-
TRIANGLE_TOP
-
TRIANGLES_BOTTOM
-
TRIANGLES_TOP
-
DIAGONAL_LEFT
-
DIAGONAL_UP_RIGHT
-
DIAGONAL_UP_LEFT
-
DIAGONAL_RIGHT
-
CIRCLE
-
RHOMBUS
-
HALF_VERTICAL
-
HALF_HORIZONTAL
-
HALF_VERTICAL_RIGHT
-
HALF_HORIZONTAL_BOTTOM
-
BORDER
-
CURLY_BORDER
-
GRADIENT
-
GRADIENT_UP
-
BRICKS
-
GLOBE
-
CREEPER
-
SKULL
-
FLOWER
-
MOJANG
-
PIGLIN
-
-
Constructor Details
-
BannerPatternImpl
Creates an instance of aBannerPatternImplrecord class.- Parameters:
namespace- the value for thenamespacerecord componentid- the value for theidrecord componentidentifier- the value for theidentifierrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
namespace
Returns the value of thenamespacerecord component.- Specified by:
namespacein interfaceProtocolObject- Returns:
- the value of the
namespacerecord component
-
id
public int id()Returns the value of theidrecord component.- Specified by:
idin interfaceStaticProtocolObject- Returns:
- the value of the
idrecord component
-
identifier
Returns the value of theidentifierrecord component.- Specified by:
identifierin interfaceBannerPattern- Returns:
- the value of the
identifierrecord component
-