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

did walshys annotations

This commit is contained in:
Mooy1 2021-03-02 00:04:37 -06:00
parent 05b67869a8
commit c8fd79938b
3 changed files with 5 additions and 1 deletions

View File

@ -61,11 +61,13 @@ public class MultiCategory extends FlexCategory {
}
@Override
@ParametersAreNonnullByDefault
public boolean isVisible(Player p, PlayerProfile profile, SlimefunGuideMode mode) {
return true;
}
@Override
@ParametersAreNonnullByDefault
public void open(Player p, PlayerProfile profile, SlimefunGuideMode mode) {
openGuide(p, profile, mode, 1);
}

View File

@ -40,7 +40,7 @@ public class SubCategory extends Category {
}
@Override
public final boolean isHidden(Player p) {
public final boolean isHidden(@Nonnull Player p) {
/*
* Sub Categories are always hidden,
* they won't show up in the normal guide view.

View File

@ -1,6 +1,7 @@
package io.github.thebusybiscuit.slimefun4.implementation.guide;
import javax.annotation.Nonnull;
import javax.annotation.ParametersAreNonnullByDefault;
import java.util.LinkedList;
import java.util.List;
@ -73,6 +74,7 @@ public class CheatSheetSlimefunGuide extends SurvivalSlimefunGuide {
}
@Override
@ParametersAreNonnullByDefault
public void createHeader(Player p, PlayerProfile profile, ChestMenu menu) {
super.createHeader(p, profile, menu);