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

Merge pull request #2857 from Mooy1/features/multi-categories

Did walshys requested changes on multi category pr
This commit is contained in:
TheBusyBiscuit 2021-03-03 14:16:05 +01:00 committed by GitHub
commit e1ccdab16b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);