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
-
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). -
sender
-
flags
-