MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / getItemInMainHand

Method getItemInMainHand

Minecraft-Utils/1.12.2/src/Variables.java:859–866  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

857 }
858
859 @Override
860 public ItemStack getItemInMainHand() {
861 if (getPlayer().co() == null) {
862 return null;
863 }
864 WrappedItemStack wrappedItemStack = new WrappedItemStack(getPlayer().co());
865 return "minecraft:air".equals(wrappedItemStack.getKey()) ? null : wrappedItemStack;
866 }
867
868 @Override
869 public ItemStack getItemInOffHand() {

Callers

nothing calls this directly

Calls 3

getPlayerMethod · 0.95
getKeyMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected