mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 11:45:51 +00:00
Some more changes
This commit is contained in:
parent
c84200d2c4
commit
036c156f40
@ -242,6 +242,7 @@ public final class SlimefunRegistry {
|
|||||||
return globalItemHandlers;
|
return globalItemHandlers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public Map<String, SlimefunBlockHandler> getBlockHandlers() {
|
public Map<String, SlimefunBlockHandler> getBlockHandlers() {
|
||||||
return blockHandlers;
|
return blockHandlers;
|
||||||
}
|
}
|
||||||
|
@ -10,9 +10,12 @@ import me.mrCookieSlime.Slimefun.Objects.SlimefunBlockHandler;
|
|||||||
*
|
*
|
||||||
* @author TheBusyBiscuit
|
* @author TheBusyBiscuit
|
||||||
*
|
*
|
||||||
|
* @deprecated This enum is no longer needed
|
||||||
|
*
|
||||||
* @see SlimefunBlockHandler
|
* @see SlimefunBlockHandler
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public enum UnregisterReason {
|
public enum UnregisterReason {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -2,6 +2,8 @@ package me.mrCookieSlime.Slimefun.Objects.handlers;
|
|||||||
|
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
|
import javax.annotation.Nonnull;
|
||||||
|
|
||||||
import io.github.thebusybiscuit.slimefun4.api.exceptions.IncompatibleItemHandlerException;
|
import io.github.thebusybiscuit.slimefun4.api.exceptions.IncompatibleItemHandlerException;
|
||||||
import io.github.thebusybiscuit.slimefun4.core.handlers.BlockUseHandler;
|
import io.github.thebusybiscuit.slimefun4.core.handlers.BlockUseHandler;
|
||||||
import io.github.thebusybiscuit.slimefun4.core.handlers.BowShootHandler;
|
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}
|
* @return An {@link Optional} describing the result, it will contain an {@link IncompatibleItemHandlerException}
|
||||||
* should there be an issue
|
* should there be an issue
|
||||||
*/
|
*/
|
||||||
default Optional<IncompatibleItemHandlerException> validate(SlimefunItem item) {
|
@Nonnull
|
||||||
|
default Optional<IncompatibleItemHandlerException> validate(@Nonnull SlimefunItem item) {
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -61,5 +64,6 @@ public interface ItemHandler {
|
|||||||
*
|
*
|
||||||
* @return The {@link Class} identifier for this {@link ItemHandler}
|
* @return The {@link Class} identifier for this {@link ItemHandler}
|
||||||
*/
|
*/
|
||||||
|
@Nonnull
|
||||||
Class<? extends ItemHandler> getIdentifier();
|
Class<? extends ItemHandler> getIdentifier();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user