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

Method getItemInMainHand

Minecraft-Utils/1.12/src/Variables.java:860–867  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

858 }
859
860 @Override
861 public ItemStack getItemInMainHand() {
862 if (getPlayer().co() == null) {
863 return null;
864 }
865 WrappedItemStack wrappedItemStack = new WrappedItemStack(getPlayer().co());
866 return "minecraft:air".equals(wrappedItemStack.getKey()) ? null : wrappedItemStack;
867 }
868
869 @Override
870 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