1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Some more changes

This commit is contained in:
TheBusyBiscuit 2020-12-05 14:21:14 +01:00
parent c84200d2c4
commit 036c156f40
3 changed files with 9 additions and 1 deletions

View File

@ -242,6 +242,7 @@ public final class SlimefunRegistry {
return globalItemHandlers;
}
@Deprecated
public Map<String, SlimefunBlockHandler> getBlockHandlers() {
return blockHandlers;
}

View File

@ -10,9 +10,12 @@ import me.mrCookieSlime.Slimefun.Objects.SlimefunBlockHandler;
*
* @author TheBusyBiscuit
*
* @deprecated This enum is no longer needed
*
* @see SlimefunBlockHandler
*
*/
@Deprecated
public enum UnregisterReason {
/**

View File

@ -2,6 +2,8 @@ package me.mrCookieSlime.Slimefun.Objects.handlers;
import java.util.Optional;
import javax.annotation.Nonnull;
import io.github.thebusybiscuit.slimefun4.api.exceptions.IncompatibleItemHandlerException;
import io.github.thebusybiscuit.slimefun4.core.handlers.BlockUseHandler;
import io.github.thebusybiscuit.slimefun4.core.handlers.BowShootHandler;
@ -51,7 +53,8 @@ public interface ItemHandler {
* @return An {@link Optional} describing the result, it will contain an {@link IncompatibleItemHandlerException}
* should there be an issue
*/
default Optional<IncompatibleItemHandlerException> validate(SlimefunItem item) {
@Nonnull
default Optional<IncompatibleItemHandlerException> validate(@Nonnull SlimefunItem item) {
return Optional.empty();
}
@ -61,5 +64,6 @@ public interface ItemHandler {
*
* @return The {@link Class} identifier for this {@link ItemHandler}
*/
@Nonnull
Class<? extends ItemHandler> getIdentifier();
}