Record Class KeyEntryListenersEvent
java.lang.Object
java.lang.Record
com.blamejared.controlling.api.event.KeyEntryListenersEvent
- All Implemented Interfaces:
IKeyEntryListenersEvent
public record KeyEntryListenersEvent(IKeyEntry entry, List<net.minecraft.client.gui.components.events.GuiEventListener> listeners)
extends Record
implements IKeyEntryListenersEvent
GetKeyEntryListenersEvent is called to get the values for
IKeyEntry.children().
Allowing for mods to add more listeners.-
Constructor Summary
ConstructorsConstructorDescriptionKeyEntryListenersEvent(IKeyEntry entry) KeyEntryListenersEvent(IKeyEntry entry, List<net.minecraft.client.gui.components.events.GuiEventListener> listeners) Creates an instance of aKeyEntryListenersEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionentry()Returns the value of theentryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.List<net.minecraft.client.gui.components.events.GuiEventListener> Returns the value of thelistenersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
KeyEntryListenersEvent
public KeyEntryListenersEvent(IKeyEntry entry, List<net.minecraft.client.gui.components.events.GuiEventListener> listeners) Creates an instance of aKeyEntryListenersEventrecord class.- Parameters:
entry- the value for theentryrecord componentlisteners- the value for thelistenersrecord component
-
KeyEntryListenersEvent
-
-
Method Details
-
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). -
entry
Returns the value of theentryrecord component.- Specified by:
entryin interfaceIKeyEntryListenersEvent- Returns:
- the value of the
entryrecord component
-
listeners
Returns the value of thelistenersrecord component.- Specified by:
listenersin interfaceIKeyEntryListenersEvent- Returns:
- the value of the
listenersrecord component
-