Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
DumbItemStack
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealEmissions committed Mar 22, 2024
1 parent aeac3f2 commit f8643ce
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package net.dumbcode.projectnublar.core.items;

import net.minecraft.world.item.ItemStack;
import net.minecraft.world.level.ItemLike;
import org.jetbrains.annotations.NotNull;

public class DumbItemStack {

Check warning on line 7 in src/main/java/net/dumbcode/projectnublar/core/items/DumbItemStack.java

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Lombok @Getter may be used

Class 'DumbItemStack' may use Lombok @Getter
private final ItemStack itemStack;

public DumbItemStack(@NotNull ItemStack itemStack) {
this.itemStack = itemStack;
}

public DumbItemStack(@NotNull ItemLike item) {
this(new ItemStack(item));
}

public DumbItemStack(@NotNull ItemLike item, int count) {
this(new ItemStack(item, count));
}

public ItemStack getItemStack() {
return itemStack;
}
}

0 comments on commit f8643ce

Please sign in to comment.