remove out commentec code

run SA
This commit is contained in:
Martin Robertz committed 2022-11-08 19:34:25 +01:00
1 parent b846e30b67
commit 2b27b551a3
795 files changed
+33663 -37253

No files matched your search

@@ -3,50 +3,42 @@ package WayofTime.alchemicalWizardry.api.alchemy;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
public class AlchemyPotionHandlerComponent
{
public class AlchemyPotionHandlerComponent {
private ItemStack itemStack;
private int potionID;
private int tickDuration;
public AlchemyPotionHandlerComponent(ItemStack itemStack, int potionID, int tickDuration)
{
public AlchemyPotionHandlerComponent(ItemStack itemStack, int potionID, int tickDuration) {
this.itemStack = itemStack;
this.potionID = potionID;
this.tickDuration = tickDuration;
}
public boolean compareItemStack(ItemStack comparedStack)
{
if (comparedStack != null && itemStack != null)
{
if (comparedStack.getItem() instanceof ItemBlock)
{
if (itemStack.getItem() instanceof ItemBlock)
{
return comparedStack.getItem().equals(itemStack.getItem()) && comparedStack.getItemDamage() == itemStack.getItemDamage();
public boolean compareItemStack(ItemStack comparedStack) {
if (comparedStack != null && itemStack != null) {
if (comparedStack.getItem() instanceof ItemBlock) {
if (itemStack.getItem() instanceof ItemBlock) {
return comparedStack.getItem().equals(itemStack.getItem())
&& comparedStack.getItemDamage() == itemStack.getItemDamage();
}
} else if (!(itemStack.getItem() instanceof ItemBlock))
{
return comparedStack.getItem().equals(itemStack.getItem()) && comparedStack.getItemDamage() == itemStack.getItemDamage();
} else if (!(itemStack.getItem() instanceof ItemBlock)) {
return comparedStack.getItem().equals(itemStack.getItem())
&& comparedStack.getItemDamage() == itemStack.getItemDamage();
}
}
return false;
}
public ItemStack getItemStack()
{
public ItemStack getItemStack() {
return itemStack;
}
public int getPotionID()
{
public int getPotionID() {
return this.potionID;
}
public int getTickDuration()
{
public int getTickDuration() {
return this.tickDuration;
}
}