Class Dependency

java.lang.Object
com.vouncherstudios.strawberry.minecraft.plugin.dependency.Dependency

public final class Dependency extends Object
Indicates that the plugin depends on another plugin in order to enable.
  • Constructor Details

    • Dependency

      public Dependency(@Nonnull String id, boolean optional)
  • Method Details

    • getId

      @Nonnull public String getId()
      Gets the unique identifier of the dependency.
      Returns:
      the unique identifier of the dependency
    • isOptional

      public boolean isOptional()
      Checks if the dependency is optional.
      Returns:
      if the dependency is optional
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object