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

Method hasInfiniteItems

src/main/java/gregapi/util/UT.java:3187–3189  ·  view source on GitHub ↗
(Object aPlayer)

Source from the content-addressed store, hash-verified

3185 }
3186
3187 public static boolean hasInfiniteItems(Object aPlayer) {
3188 return aPlayer instanceof EntityPlayer && ((EntityPlayer)aPlayer).capabilities.isCreativeMode;
3189 }
3190
3191 public static boolean consumeCurrentItem(EntityPlayer aPlayer) {
3192 if (aPlayer == null) return F;

Callers 15

consumeCurrentItemMethod · 0.95
onPlayerDestroyItemMethod · 0.80
onArrowLooseEventMethod · 0.80
onItemUseFirstMethod · 0.80
addInformationMethod · 0.80
wrenchUsedMethod · 0.80
onWhackMethod · 0.80
onLinkMethod · 0.80
onBoostMethod · 0.80
doDamageMethod · 0.80
onBlockDestroyedMethod · 0.80
onEatenMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected