MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / add

Method add

src/main/java/gregapi/util/ST.java:1067–1069  ·  view source on GitHub ↗
(Entity aPlayer, ItemStack aStack)

Source from the content-addressed store, hash-verified

1065 }
1066
1067 public static boolean add(Entity aPlayer, ItemStack aStack) {
1068 return add(aPlayer, aStack, F);
1069 }
1070 public static boolean add(Entity aPlayer, ItemStack aStack, boolean aCurrentSlotFirst) {
1071 return aPlayer instanceof EntityPlayer && add(aPlayer, ((EntityPlayer)aPlayer).inventory, aStack, aCurrentSlotFirst);
1072 }

Callers 15

onToolClick2Method · 0.95
switchBooksMethod · 0.95
onToolClickMethod · 0.95
onToolClickMethod · 0.95
giveMethod · 0.95
pickUpItemMethod · 0.95
onBlockActivated3Method · 0.95
onBlockActivated3Method · 0.95
onToolClick2Method · 0.95
onBlockActivated3Method · 0.95

Calls 7

validMethod · 0.95
checkMethod · 0.95
equalMethod · 0.95
updateMethod · 0.95
getStackInSlotMethod · 0.65
getMaxStackSizeMethod · 0.65

Tested by

no test coverage detected