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

Method getItemInArmorSlot

Minecraft-Utils/1.12.2/src/Variables.java:877–884  ·  view source on GitHub ↗
(int slot)

Source from the content-addressed store, hash-verified

875 }
876
877 @Override
878 public ItemStack getItemInArmorSlot(int slot) {
879 if (getArmorItemBySlot(slot) == null) {
880 return null;
881 }
882 WrappedItemStack wrappedItemStack = new WrappedItemStack(getArmorItemBySlot(slot));
883 return "minecraft:air".equals(wrappedItemStack.getKey()) ? null : wrappedItemStack;
884 }
885
886 public Collection<va> getActivePlayerPotionEffects() {
887 return getPlayer().ca();

Callers

nothing calls this directly

Calls 3

getArmorItemBySlotMethod · 0.95
getKeyMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected