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

Method getItemInArmorSlot

Minecraft-Utils/1.13/src/Variables.java:903–910  ·  view source on GitHub ↗
(int slot)

Source from the content-addressed store, hash-verified

901 }
902
903 @Override
904 public ItemStack getItemInArmorSlot(int slot) {
905 if (getArmorItemBySlot(slot) == null) {
906 return null;
907 }
908 WrappedItemStack wrappedItemStack = new WrappedItemStack(getArmorItemBySlot(slot));
909 return "minecraft:air".equals(wrappedItemStack.getKey()) ? null : wrappedItemStack;
910 }
911
912 public Collection<aeh> getActivePlayerPotionEffects() {
913 return getPlayer().cn();

Callers

nothing calls this directly

Calls 3

getArmorItemBySlotMethod · 0.95
getKeyMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected