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

Method getItemInOffHand

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

Source from the content-addressed store, hash-verified

892 }
893
894 @Override
895 public ItemStack getItemInOffHand() {
896 if (getPlayer().cC() == null) {
897 return null;
898 }
899 WrappedItemStack wrappedItemStack = new WrappedItemStack(getPlayer().cC());
900 return "minecraft:air".equals(wrappedItemStack.getKey()) ? null : wrappedItemStack;
901 }
902
903 @Override
904 public ItemStack getItemInArmorSlot(int slot) {

Callers

nothing calls this directly

Calls 3

getPlayerMethod · 0.95
getKeyMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected