Package kr.toxicity.hud.api.plugin
Record Class ReloadInfo
java.lang.Object
java.lang.Record
kr.toxicity.hud.api.plugin.ReloadInfo
- Record Components:
sender- senderflags- reload flags
public record ReloadInfo(@NotNull kr.toxicity.command.BetterCommandSource sender, @NotNull Set<ReloadFlagType> flags)
extends Record
Info required a reload task.
-
Constructor Summary
ConstructorsConstructorDescriptionReloadInfo(@NotNull kr.toxicity.command.BetterCommandSource sender, @NotNull Set<ReloadFlagType> flags) Creates an instance of aReloadInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull Set<ReloadFlagType> flags()Returns the value of theflagsrecord component.booleanhas(@NotNull ReloadFlagType type) Checks info has this flag.final inthashCode()Returns a hash code value for this object.@NotNull kr.toxicity.command.BetterCommandSourcesender()Returns the value of thesenderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReloadInfo
public ReloadInfo(@NotNull @NotNull kr.toxicity.command.BetterCommandSource sender, @NotNull @NotNull Set<ReloadFlagType> flags) Creates an instance of aReloadInforecord class.
-
-
Method Details
-
has
Checks info has this flag.- Parameters:
type- target type- Returns:
- whether to have or not
-
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). -
sender
@NotNull public @NotNull kr.toxicity.command.BetterCommandSource sender()Returns the value of thesenderrecord component.- Returns:
- the value of the
senderrecord component
-
flags
Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-