Record Class Message.Format.Object
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Message.Format.Object
- All Implemented Interfaces:
EnableSetting
- Enclosing class:
Message.Format
public static record Message.Format.Object(Boolean enable, Message.Format.Object.PlayerheadTag playerHeadTag, Message.Format.Object.SpriteTag spriteTag, Message.Format.Object.TextureTag textureTag)
extends Record
implements EnableSetting
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionObject(Boolean enable, Message.Format.Object.PlayerheadTag playerHeadTag, Message.Format.Object.SpriteTag spriteTag, Message.Format.Object.TextureTag textureTag) Creates an instance of aObjectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()enable()Returns the value of theenablerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theplayerHeadTagrecord component.Returns the value of thespriteTagrecord component.Returns the value of thetextureTagrecord component.final StringtoString()Returns a string representation of this record class.withEnable(Boolean enable) withPlayerHeadTag(Message.Format.Object.PlayerheadTag playerHeadTag) withSpriteTag(Message.Format.Object.SpriteTag spriteTag) withTextureTag(Message.Format.Object.TextureTag textureTag)
-
Constructor Details
-
Object
public Object(Boolean enable, Message.Format.Object.PlayerheadTag playerHeadTag, Message.Format.Object.SpriteTag spriteTag, Message.Format.Object.TextureTag textureTag) Creates an instance of aObjectrecord class.- Parameters:
enable- the value for theenablerecord componentplayerHeadTag- the value for theplayerHeadTagrecord componentspriteTag- the value for thespriteTagrecord componenttextureTag- the value for thetextureTagrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withEnable
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withPlayerHeadTag
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withSpriteTag
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withTextureTag
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
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). -
enable
Returns the value of theenablerecord component.- Specified by:
enablein interfaceEnableSetting- Returns:
- the value of the
enablerecord component
-
playerHeadTag
Returns the value of theplayerHeadTagrecord component.- Returns:
- the value of the
playerHeadTagrecord component
-
spriteTag
Returns the value of thespriteTagrecord component.- Returns:
- the value of the
spriteTagrecord component
-
textureTag
Returns the value of thetextureTagrecord component.- Returns:
- the value of the
textureTagrecord component
-