Class ItemStatsImpl

java.lang.Object
dev.potota.itemstats.impl.ItemStatsImpl

public class ItemStatsImpl extends Object
  • Field Details

  • Constructor Details

    • ItemStatsImpl

      public ItemStatsImpl()
  • Method Details

    • id

      public static net.minecraft.resources.ResourceLocation id(String path)
    • logInfo

      public static void logInfo(String format, Object... arguments)
    • logError

      public static void logError(String format, Object... arguments)
    • logException

      public static void logException(Exception e)
    • registerBuiltInStats

      public static void registerBuiltInStats(BiConsumer<net.minecraft.resources.ResourceLocation,ItemStat<?>> registrar)
    • keyOf

      public static <T> Optional<net.minecraft.resources.ResourceKey<T>> keyOf(T value, net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>> registry, net.minecraft.core.RegistryAccess registryAccess)