Add LevelMaintainer

This commit is contained in:
asdflj committed 2022-11-09 11:03:46 +08:00
1 parent 89068c4dff
commit 5d31d6d6fb
15 files changed
+373 -170

No files matched your search

@@ -95,6 +95,25 @@ public class ItemFluidDrop extends Item {
return stack;
}
public static boolean isFluidStack(ItemStack stack) {
if (getFluidStack(stack) != null) {
return true;
} else {
return false;
}
}
public static boolean isFluidStack(@Nullable IAEItemStack stack) {
if (stack == null) {
return false;
}
if (getFluidStack(stack.getItemStack()) != null) {
return true;
} else {
return false;
}
}
public static FluidStack getFluidStack(ItemStack stack) {
if (stack == null || stack.getItem() != ItemAndBlockHolder.DROP || !stack.hasTagCompound()) {
return null;