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

Method getItemInMainHand

Minecraft-Utils/1.13/src/Variables.java:885–892  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

883 }
884
885 @Override
886 public ItemStack getItemInMainHand() {
887 if (getPlayer().cB() == null) {
888 return null;
889 }
890 WrappedItemStack wrappedItemStack = new WrappedItemStack(getPlayer().cB());
891 return "minecraft:air".equals(wrappedItemStack.getKey()) ? null : wrappedItemStack;
892 }
893
894 @Override
895 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