mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-28 07:35:40 +00:00
[ci skip] spotlessApply with the new settings
This commit is contained in:
1 parent
6b208b98bc
commit
a309488cdf
214 files changed
+9283
-9265
No files matched your search
@@ -1,11 +1,11 @@
|
||||
package minetweaker.api.item;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import minetweaker.api.liquid.ILiquidStack;
|
||||
import minetweaker.api.player.IPlayer;
|
||||
import minetweaker.util.ArrayUtil;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* Contains an item stack with modifiers applied to it.
|
||||
*
|
||||
@@ -75,12 +75,10 @@ public class IngredientItem implements IIngredient {
|
||||
|
||||
@Override
|
||||
public boolean matches(IItemStack item) {
|
||||
if(!this.item.matches(item))
|
||||
return false;
|
||||
if (!this.item.matches(item)) return false;
|
||||
|
||||
for(IItemCondition condition : conditions) {
|
||||
if(!condition.matches(item))
|
||||
return false;
|
||||
for (IItemCondition condition : conditions) {
|
||||
if (!condition.matches(item)) return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -88,12 +86,10 @@ public class IngredientItem implements IIngredient {
|
||||
|
||||
@Override
|
||||
public boolean matchesExact(IItemStack item) {
|
||||
if(!this.item.matchesExact(item))
|
||||
return false;
|
||||
if (!this.item.matchesExact(item)) return false;
|
||||
|
||||
for(IItemCondition condition : conditions) {
|
||||
if(!condition.matches(item))
|
||||
return false;
|
||||
for (IItemCondition condition : conditions) {
|
||||
if (!condition.matches(item)) return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -107,9 +103,8 @@ public class IngredientItem implements IIngredient {
|
||||
@Override
|
||||
public boolean contains(IIngredient ingredient) {
|
||||
List<IItemStack> iitems = ingredient.getItems();
|
||||
for(IItemStack iitem : iitems) {
|
||||
if(!matches(iitem))
|
||||
return false;
|
||||
for (IItemStack iitem : iitems) {
|
||||
if (!matches(iitem)) return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -117,7 +112,7 @@ public class IngredientItem implements IIngredient {
|
||||
|
||||
@Override
|
||||
public IItemStack applyTransform(IItemStack item, IPlayer byPlayer) {
|
||||
for(IItemTransformer transform : transformers) {
|
||||
for (IItemTransformer transform : transformers) {
|
||||
item = transform.transform(item, byPlayer);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user