fabric-rendering-v1-16.2.0+bee81f016f.jar

Download file
    package net.fabricmc.fabric.impl.client.rendering.hud;

import java.util.function.Function;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.fabricmc.fabric.api.client.rendering.v1.hud.HudElement;
import net.minecraft.class_2960;

@Environment(EnvType.CLIENT)
public interface HudLayer {
   class_2960 id();

   HudElement element(HudElement var1);

   boolean isRemoved();

   static HudLayer ofVanilla(class_2960 id) {
      return of(id, Function.identity(), false);
   }

   static HudLayer ofElement(class_2960 id, HudElement element) {
      return of(id, ($) -> element, false);
   }

   static HudLayer of(final class_2960 id, final Function<HudElement, HudElement> operator, final boolean isRemoved) {
      return new HudLayer() {
         public class_2960 id() {
            return id;
         }

         public HudElement element(HudElement vanillaElement) {
            return (HudElement)operator.apply(vanillaElement);
         }

         public boolean isRemoved() {
            return isRemoved;
         }
      };
   }
}
    
Download file