Record Class Cause
java.lang.Object
java.lang.Record
dev.yowsef.stealablock.api.cause.Cause
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringdetail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static @NotNull Causestatic @NotNull Causestatic @NotNull Causeplugin(@NotNull org.bukkit.plugin.Plugin plugin) static @NotNull Cause@Nullable StringReturns the value of thepluginNamerecord component.@NotNull StringtoString()Returns a string representation of this record class.@NotNull CauseTypetype()Returns the value of thetyperecord component.
-
Field Details
-
GAMEPLAY
-
ADMIN
-
VAULT
-
-
Constructor Details
-
Cause
public Cause(@NotNull @NotNull CauseType type, @Nullable @Nullable String pluginName, @Nullable @Nullable String detail) Creates an instance of aCauserecord class.- Parameters:
type- the value for thetyperecord componentpluginName- the value for thepluginNamerecord componentdetail- the value for thedetailrecord component
-
-
Method Details
-
of
-
of
-
plugin
-
plugin
-
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
pluginName
Returns the value of thepluginNamerecord component.- Returns:
- the value of the
pluginNamerecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-