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

Method getItemInArmorSlot

Minecraft-Utils/1.12/src/Variables.java:878–885  ·  view source on GitHub ↗
(int slot)

Source from the content-addressed store, hash-verified

876 }
877
878 @Override
879 public ItemStack getItemInArmorSlot(int slot) {
880 if (getArmorItemBySlot(slot) == null) {
881 return null;
882 }
883 WrappedItemStack wrappedItemStack = new WrappedItemStack(getArmorItemBySlot(slot));
884 return "minecraft:air".equals(wrappedItemStack.getKey()) ? null : wrappedItemStack;
885 }
886
887 public Collection<uy> getActivePlayerPotionEffects() {
888 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