MCPcopy Create free account
hub / github.com/BuildCraft/BuildCraft / isValid

Method isValid

common/buildcraft/lib/misc/StackUtil.java:252–254  ·  view source on GitHub ↗
(ItemStack stack)

Source from the content-addressed store, hash-verified

250 public static final ItemStack INVALID_STACK = null;
251
252 public static boolean isValid(ItemStack stack) {
253 return !isInvalid(stack);
254 }
255
256 /** Tests to see if a given stack is invalid. This ALSO tests to see if the item is null or the stacksize is less
257 * than 0. Vanilla's method also does a metadata check, but that's not used so much in the codebase. */

Callers 7

canTakeStackFromSlotMethod · 0.95
PipeFlowItemsMethod · 0.95
onSlotChangedMethod · 0.95
drawBackgroundMethod · 0.95
drawMethod · 0.95
findMatchingRecipeMethod · 0.95
insertAllAtOnceMethod · 0.95

Calls 1

isInvalidMethod · 0.95

Tested by

no test coverage detected