Skip to content

Commit 92e2391

Browse files
committed
forgor
1 parent 30072cb commit 92e2391

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

src/main/java/gregtech/api/util/GTUtility.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import gregtech.api.recipes.RecipeMap;
1919
import gregtech.api.unification.OreDictUnifier;
2020
import gregtech.api.unification.ore.OrePrefix;
21-
import gregtech.common.items.behaviors.ColorSprayBehavior;
2221

2322
import net.minecraft.block.BlockRedstoneWire;
2423
import net.minecraft.block.BlockSnow;
@@ -568,25 +567,6 @@ public static boolean isCoverBehaviorItem(ItemStack itemStack, @Nullable Boolean
568567
return false;
569568
}
570569

571-
/**
572-
* Checks if an item is a spray can for rendering the machine grid
573-
*
574-
* @param itemStack itemStack to check
575-
* @return If the itemStack has the behaviour of a spray can
576-
*/
577-
public static boolean isSprayCan(ItemStack itemStack) {
578-
Item item = itemStack.getItem();
579-
if (item instanceof MetaItem<?>metaItem) {
580-
MetaItem<?>.MetaValueItem valueItem = metaItem.getItem(itemStack);
581-
if (valueItem != null) {
582-
for (IItemBehaviour behaviour : valueItem.getBehaviours()) {
583-
return behaviour instanceof ColorSprayBehavior;
584-
}
585-
}
586-
}
587-
return false;
588-
}
589-
590570
/**
591571
* Default function for tank sizes, takes a tier input and returns the corresponding size
592572
*/

0 commit comments

Comments
 (0)