Skip to content

Commit

Permalink
chore: lombok
Browse files Browse the repository at this point in the history
  • Loading branch information
ybw0014 committed Aug 16, 2024
1 parent c67a333 commit 90ad3f4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@
import io.github.thebusybiscuit.slimefun4.api.items.groups.SubItemGroup;
import io.github.thebusybiscuit.slimefun4.libraries.dough.items.CustomItemStack;

import lombok.experimental.UtilityClass;

/**
* All the {@link ItemGroup}s in MobCapturer.
*
* @author TheBusyBiscuit
* @author ybw0014
*/
@UtilityClass
public final class ItemGroups {

public static final NestedItemGroup MAIN = new NestedItemGroup(
Expand All @@ -42,7 +45,4 @@ public final class ItemGroups {
"&aMob Eggs"
)
);

private ItemGroups() {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@
import io.github.thebusybiscuit.slimefun4.libraries.commons.lang.Validate;
import io.github.thebusybiscuit.slimefun4.utils.ChatUtils;

import lombok.experimental.UtilityClass;

/**
* All the {@link SlimefunItemStack}s in MobCapturer.
*
* @author TheBusyBiscuit
* @author ybw0014
*/
@UtilityClass
public final class ItemStacks {

public static final SlimefunItemStack MOB_CANNON = new SlimefunItemStack(
Expand All @@ -34,9 +37,6 @@ public final class ItemStacks {
"&7Ammunition for your &6Mob Capturing Cannon"
);

private ItemStacks() {
}

@Nonnull
@ParametersAreNonnullByDefault
public static SlimefunItemStack buildMobEgg(EntityType type, String eggTexture) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@

import io.github.thebusybiscuit.mobcapturer.MobCapturer;

import lombok.experimental.UtilityClass;

/**
* All the {@link NamespacedKey}s and key strings in MobCapturer.
*
* @author TheBusyBiscuit
* @author ybw0014
*/
@UtilityClass
public final class Keys {

public static final NamespacedKey DATA = new NamespacedKey(MobCapturer.getInstance(), "captured_mob");
public static final NamespacedKey INVENTORY = new NamespacedKey(MobCapturer.getInstance(), "mob_inventory");
public static final String MOB_CAPTURING_PELLET = "mob_capturing_cannon";

private Keys() {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@
import io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType;
import io.github.thebusybiscuit.slimefun4.libraries.dough.items.CustomItemStack;

import lombok.experimental.UtilityClass;

/**
* All the {@link RecipeType}s in MobCapturer.
*
* @author TheBusyBiscuit
* @author ybw0014
*/
@UtilityClass
public final class RecipeTypes {

// @formatter:off
public static final RecipeType MOB_CAPTURING = new RecipeType(
new NamespacedKey(MobCapturer.getInstance(), "mob_capturing"),
new CustomItemStack(
Expand All @@ -23,7 +27,5 @@ public final class RecipeTypes {
"&7to catch the given Mob."
)
);

private RecipeTypes() {
}
// @formatter:on
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,16 @@
import io.github.thebusybiscuit.mobcapturer.MobCapturer;
import io.github.thebusybiscuit.slimefun4.api.researches.Research;

import lombok.experimental.UtilityClass;

/**
* All the {@link Research}es in MobCapturer.
*
* @author TheBusyBiscuit
* @author ybw0014
*/
@UtilityClass
public final class Researches {

public static final Research MOB_CAPTURING = new Research(
new NamespacedKey(MobCapturer.getInstance(), "mob_capturing"),
32652,
"Capturing Mobs",
28
);

private Researches() {
}
public static final Research MOB_CAPTURING = new Research(new NamespacedKey(MobCapturer.getInstance(), "mob_capturing"), 32652, "Capturing Mobs", 28);
}

0 comments on commit 90ad3f4

Please sign in to comment.