Skip to content

Commit

Permalink
fixed annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
iTwins committed Sep 3, 2023
1 parent 70f5c2f commit d6863c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.github.thebusybiscuit.slimefun4.implementation.items.cargo;

import javax.annotation.ParametersAreNonnullByDefault;

import org.bukkit.inventory.ItemStack;

import io.github.thebusybiscuit.slimefun4.api.items.ItemGroup;
Expand All @@ -15,6 +17,7 @@
*/
public class CargoInsulator extends SlimefunItem {

@ParametersAreNonnullByDefault
public CargoInsulator(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) {
super(itemGroup, item, recipeType, recipe);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.annotation.ParametersAreNonnullByDefault;

import org.bukkit.inventory.ItemStack;

Expand All @@ -24,13 +25,13 @@
*/
public class EnergyInsulator extends SlimefunItem implements EnergyNetComponent {

@ParametersAreNonnullByDefault
public EnergyInsulator(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) {
super(itemGroup, item, recipeType, recipe);
}

@Nonnull
@Override
public EnergyNetComponentType getEnergyComponentType() {
public @Nonnull EnergyNetComponentType getEnergyComponentType() {
return EnergyNetComponentType.INSULATOR;
}

Expand Down

0 comments on commit d6863c6

Please sign in to comment.