Record Class CharacterEvent
java.lang.Object
java.lang.Record
net.minecraft.client.input.CharacterEvent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecodepointrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCharacterEvent(int codepoint) Creates an instance of aCharacterEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecodepointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
codepoint
private final int codepointThe field for thecodepointrecord component.
-
-
Constructor Details
-
CharacterEvent
public CharacterEvent(int codepoint) Creates an instance of aCharacterEventrecord class.- Parameters:
codepoint- the value for thecodepointrecord component
-
-
Method Details
-
codepointAsString
-
isAllowedChatCharacter
public boolean isAllowedChatCharacter() -
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 with thecomparemethod from their corresponding wrapper classes. -
codepoint
public int codepoint()Returns the value of thecodepointrecord component.- Returns:
- the value of the
codepointrecord component
-