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
Modifier and TypeFieldDescriptionstatic final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
static final BannerPattern
-
Constructor Summary
ConstructorDescriptionBannerPatternImpl
(NamespaceID namespace, int id, String identifier) Creates an instance of aBannerPatternImpl
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
id()
Returns the value of theid
record component.Returns the value of theidentifier
record component.Returns the value of thenamespace
record component.toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minestom.server.item.banner.BannerPattern
key
Methods 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 aBannerPatternImpl
record class.- Parameters:
namespace
- the value for thenamespace
record componentid
- the value for theid
record componentidentifier
- the value for theidentifier
record 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 thenamespace
record component.- Specified by:
namespace
in interfaceProtocolObject
- Returns:
- the value of the
namespace
record component
-
id
public int id()Returns the value of theid
record component.- Specified by:
id
in interfaceStaticProtocolObject
- Returns:
- the value of the
id
record component
-
identifier
Returns the value of theidentifier
record component.- Specified by:
identifier
in interfaceBannerPattern
- Returns:
- the value of the
identifier
record component
-