File tree Expand file tree Collapse file tree
src/main/java/io/github/thebusybiscuit/sensibletoolbox/utils Expand file tree Collapse file tree Original file line number Diff line number Diff line change 192192 </build >
193193
194194 <dependencies >
195- <dependency >
196- <groupId >org.projectlombok</groupId >
197- <artifactId >lombok</artifactId >
198- <version >1.18.22</version >
199- <scope >provided</scope >
200- </dependency >
201195 <dependency >
202196 <groupId >org.spigotmc</groupId >
203197 <artifactId >spigot-api</artifactId >
Original file line number Diff line number Diff line change 22
33import java .util .Optional ;
44
5- import org . bukkit . Material ;
5+ import javax . annotation . Nonnull ;
66
7- import lombok . NonNull ;
7+ import org . bukkit . Material ;
88
99/**
1010 * A collection of miscellaneous material-related utility methods.
@@ -16,7 +16,7 @@ public final class MaterialConverter {
1616 * @param log log you want to turn into sapling
1717 * @return sapling
1818 */
19- public static Optional <Material > getSaplingFromLog (@ NonNull Material log ) {
19+ public static Optional <Material > getSaplingFromLog (@ Nonnull Material log ) {
2020 if (!isLog (log ))
2121 return Optional .empty ();
2222
@@ -35,7 +35,7 @@ public static Optional<Material> getSaplingFromLog(@NonNull Material log) {
3535 * @param log log you want to turn into planks
3636 * @return planks
3737 */
38- public static Optional <Material > getPlanksFromLog (@ NonNull Material log ) {
38+ public static Optional <Material > getPlanksFromLog (@ Nonnull Material log ) {
3939 if (!isLog (log ))
4040 return Optional .empty ();
4141
@@ -54,7 +54,7 @@ public static Optional<Material> getPlanksFromLog(@NonNull Material log) {
5454 * @param log the material to check
5555 * @return true if the stack is log; false otherwise
5656 */
57- public static boolean isLog (@ NonNull Material log ) {
57+ public static boolean isLog (@ Nonnull Material log ) {
5858 return log .name ().endsWith ("_LOG" ) || log .name ().endsWith ("_WOOD" );
5959 }
6060}
You can’t perform that action at this time.
0 commit comments