[ci skip] spotlessApply with the new settings

This commit is contained in:
Raven Szewczyk committed 2023-01-29 11:36:41 +00:00
1 parent 6b208b98bc
commit a309488cdf
214 files changed
+9283 -9265

No files matched your search

@@ -1,27 +1,28 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
* To change this license header, choose License Headers in Project Properties. To change this template file, choose
* Tools | Templates and open the template in the editor.
*/
package minetweaker.mc1710.liquid;
import java.util.Collections;
import java.util.List;
import minetweaker.api.data.IData;
import minetweaker.api.item.*;
import minetweaker.api.liquid.ILiquidDefinition;
import minetweaker.api.liquid.ILiquidStack;
import minetweaker.api.player.IPlayer;
import minetweaker.mc1710.data.NBTConverter;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.fluids.FluidStack;
import java.util.Collections;
import java.util.List;
/**
* @author Stan
*/
public class MCLiquidStack implements ILiquidStack {
private final FluidStack stack;
private IData tag = null;
@@ -162,8 +163,7 @@ public class MCLiquidStack implements ILiquidStack {
@Override
public boolean matches(ILiquidStack liquid) {
return getDefinition().equals(liquid.getDefinition())
&& getAmount() <= liquid.getAmount();
return getDefinition().equals(liquid.getDefinition()) && getAmount() <= liquid.getAmount();
}
@Override
@@ -173,12 +173,10 @@ public class MCLiquidStack implements ILiquidStack {
@Override
public boolean contains(IIngredient ingredient) {
if (!ingredient.getItems().isEmpty())
return false;
if (!ingredient.getItems().isEmpty()) return false;
for (ILiquidStack liquid : ingredient.getLiquids()) {
if (!matches(liquid))
return false;
if (!matches(liquid)) return false;
}
return false;