Class UnsupportedEntityException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ua.mcchickenstudio.opencreative.coding.exceptions.UnsupportedEntityException
All Implemented Interfaces:
Serializable

public final class UnsupportedEntityException extends RuntimeException

UnsupportedEntityException

This class represents an exception, that happens when code tries to perform action, that won't work on current entity and requires it to be the specified.
See Also:
  • Constructor Details

    • UnsupportedEntityException

      public UnsupportedEntityException(@NotNull @NotNull Class<?> required, @NotNull @NotNull org.bukkit.entity.Entity current)
  • Method Details

    • getRequired

      @NotNull public @NotNull Class<?> getRequired()
    • getCurrent

      @NotNull public @NotNull Class<? extends org.bukkit.entity.Entity> getCurrent()