mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Make SlimefunItem#getOptionalByItem static like intended (#4098)
This commit is contained in:
parent
c95bcc927f
commit
31c7c4ead6
@ -1199,7 +1199,7 @@ public class SlimefunItem implements Placeable {
|
|||||||
* The {@link ItemStack} to check
|
* The {@link ItemStack} to check
|
||||||
* @return The {@link Optional} {@link SlimefunItem} associated with this {@link ItemStack} if present, otherwise empty
|
* @return The {@link Optional} {@link SlimefunItem} associated with this {@link ItemStack} if present, otherwise empty
|
||||||
*/
|
*/
|
||||||
public @Nonnull Optional<SlimefunItem> getOptionalByItem(@Nullable ItemStack item) {
|
public static @Nonnull Optional<SlimefunItem> getOptionalByItem(@Nullable ItemStack item) {
|
||||||
return Optional.ofNullable(getByItem(item));
|
return Optional.ofNullable(getByItem(item));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user