Record Class UnloadedTrigger
java.lang.Object
java.lang.Record
io.github.syst3ms.skriptparser.lang.UnloadedTrigger
public record UnloadedTrigger(Trigger trigger, FileSection section, int line, SkriptEventInfo<?> eventInfo, ParserState parserState)
extends Record
A
trigger-to-be whose contents haven't been loaded yet. It will be loaded based on its event's
loading priority.-
Constructor Summary
ConstructorsConstructorDescriptionUnloadedTrigger(Trigger trigger, FileSection section, int line, SkriptEventInfo<?> eventInfo, ParserState parserState) Creates an instance of aUnloadedTriggerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theeventInforecord component.final inthashCode()Returns a hash code value for this object.intline()Returns the value of thelinerecord component.Returns the value of theparserStaterecord component.section()Returns the value of thesectionrecord component.final StringtoString()Returns a string representation of this record class.trigger()Returns the value of thetriggerrecord component.
-
Constructor Details
-
UnloadedTrigger
public UnloadedTrigger(Trigger trigger, FileSection section, int line, SkriptEventInfo<?> eventInfo, ParserState parserState) Creates an instance of aUnloadedTriggerrecord class.- Parameters:
trigger- the value for thetriggerrecord componentsection- the value for thesectionrecord componentline- the value for thelinerecord componenteventInfo- the value for theeventInforecord componentparserState- the value for theparserStaterecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
trigger
Returns the value of thetriggerrecord component.- Returns:
- the value of the
triggerrecord component
-
section
Returns the value of thesectionrecord component.- Returns:
- the value of the
sectionrecord component
-
line
public int line()Returns the value of thelinerecord component.- Returns:
- the value of the
linerecord component
-
eventInfo
Returns the value of theeventInforecord component.- Returns:
- the value of the
eventInforecord component
-
parserState
Returns the value of theparserStaterecord component.- Returns:
- the value of the
parserStaterecord component
-