mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Apply suggestions from code review
Co-authored-by: TheBusyBiscuit <TheBusyBiscuit@users.noreply.github.com>
This commit is contained in:
parent
bd6efaf632
commit
33340d0dd0
@ -59,9 +59,8 @@ public class AutoBrewer extends AContainer implements NotHopperable {
|
||||
super(category, item, recipeType, recipe);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
protected MachineRecipe findNextRecipe(BlockMenu menu) {
|
||||
protected @Nullable MachineRecipe findNextRecipe(BlockMenu menu) {
|
||||
ItemStack input1 = menu.getItemInSlot(getInputSlots()[0]);
|
||||
ItemStack input2 = menu.getItemInSlot(getInputSlots()[1]);
|
||||
|
||||
@ -102,9 +101,8 @@ public class AutoBrewer extends AContainer implements NotHopperable {
|
||||
}
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@ParametersAreNonnullByDefault
|
||||
private ItemStack brew(Material input, Material potionType, PotionMeta potion) {
|
||||
private @Nullable ItemStack brew(Material input, Material potionType, PotionMeta potion) {
|
||||
PotionData data = potion.getBasePotionData();
|
||||
|
||||
PotionType type = data.getType();
|
||||
@ -157,15 +155,13 @@ public class AutoBrewer extends AContainer implements NotHopperable {
|
||||
return mat == Material.POTION || mat == Material.SPLASH_POTION || mat == Material.LINGERING_POTION;
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public ItemStack getProgressBar() {
|
||||
public @Nonnull ItemStack getProgressBar() {
|
||||
return new ItemStack(Material.FISHING_ROD);
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public String getMachineIdentifier() {
|
||||
public @Nonnull String getMachineIdentifier() {
|
||||
return "AUTO_BREWER";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user