Package net.minecraft.network.chat
Record Class ChatType.Bound
java.lang.Object
java.lang.Record
net.minecraft.network.chat.ChatType.Bound
- Enclosing class:
- ChatType
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionchatType()
Returns the value of thechatType
record component.decorateNarration
(Component p_241354_) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.Returns the value of thetargetName
record component.toNetwork
(RegistryAccess p_241362_) final String
toString()
Returns a string representation of this record class.withTargetName
(Component p_241530_)
-
Field Details
-
chatType
The field for thechatType
record component. -
name
The field for thename
record component. -
targetName
The field for thetargetName
record component.
-
-
Constructor Details
-
Bound
-
Bound
Creates an instance of aBound
record class.- Parameters:
chatType
- the value for thechatType
record componentname
- the value for thename
record componenttargetName
- the value for thetargetName
record component
-
-
Method Details
-
decorate
-
decorateNarration
-
withTargetName
-
toNetwork
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
chatType
Returns the value of thechatType
record component.- Returns:
- the value of the
chatType
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
targetName
Returns the value of thetargetName
record component.- Returns:
- the value of the
targetName
record component
-