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

Method getItemInOffHand

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

Source from the content-addressed store, hash-verified

867 }
868
869 @Override
870 public ItemStack getItemInOffHand() {
871 if (getPlayer().cp() == null) {
872 return null;
873 }
874 WrappedItemStack wrappedItemStack = new WrappedItemStack(getPlayer().cp());
875 return "minecraft:air".equals(wrappedItemStack.getKey()) ? null : wrappedItemStack;
876 }
877
878 @Override
879 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