Package devs.beer.nativepackets.api
Record Class ScoreboardTeamParameters
java.lang.Object
java.lang.Record
devs.beer.nativepackets.api.ScoreboardTeamParameters
public record ScoreboardTeamParameters(NativeText displayName, NativeText prefix, NativeText suffix, int options, TeamNameTagVisibility nameTagVisibility, TeamCollisionRule collisionRule, NativeChatColor color)
extends Record
Team presentation fields used by add and update operations.
-
Constructor Summary
ConstructorsConstructorDescriptionScoreboardTeamParameters(NativeText displayName, NativeText prefix, NativeText suffix, int options, TeamNameTagVisibility nameTagVisibility, TeamCollisionRule collisionRule, NativeChatColor color) Creates an instance of aScoreboardTeamParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollisionRulerecord component.color()Returns the value of thecolorrecord component.Returns the value of thedisplayNamerecord 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 thenameTagVisibilityrecord component.intoptions()Returns the value of theoptionsrecord component.prefix()Returns the value of theprefixrecord component.suffix()Returns the value of thesuffixrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScoreboardTeamParameters
public ScoreboardTeamParameters(NativeText displayName, NativeText prefix, NativeText suffix, int options, TeamNameTagVisibility nameTagVisibility, TeamCollisionRule collisionRule, NativeChatColor color) Creates an instance of aScoreboardTeamParametersrecord class.- Parameters:
displayName- the value for thedisplayNamerecord componentprefix- the value for theprefixrecord componentsuffix- the value for thesuffixrecord componentoptions- the value for theoptionsrecord componentnameTagVisibility- the value for thenameTagVisibilityrecord componentcollisionRule- the value for thecollisionRulerecord componentcolor- the value for thecolorrecord 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 '=='. -
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
suffix
Returns the value of thesuffixrecord component.- Returns:
- the value of the
suffixrecord component
-
options
public int options()Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-
nameTagVisibility
Returns the value of thenameTagVisibilityrecord component.- Returns:
- the value of the
nameTagVisibilityrecord component
-
collisionRule
Returns the value of thecollisionRulerecord component.- Returns:
- the value of the
collisionRulerecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-