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

Method getItemInOffHand

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

Source from the content-addressed store, hash-verified

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