Interface Weighted

All Known Implementing Classes:
EnchantmentLevelEntry, MobSpawnerEntry, SpawnSettings.SpawnEntry, Weighted.Absent, Weighted.Present

public interface Weighted
Mappings:
Namespace Name
official apy
intermediary net/minecraft/class_6008
named net/minecraft/util/collection/Weighted
  • Nested Class Summary

    Nested Classes
    Modifier and Type Interface Description
    static class  Weighted.Absent  
    static class  Weighted.Present<T>  
  • Method Summary

    Modifier and Type Method Description
    Weight getWeight()  
    static <T> Weighted.Present<T> of​(T data, int weight)  
  • Method Details

    • getWeight

      Weight getWeight()
      Mappings:
      Namespace Name Mixin selector
      official a Lapy;a()Lapx;
      intermediary method_34979 Lnet/minecraft/class_6008;method_34979()Lnet/minecraft/class_6007;
      named getWeight Lnet/minecraft/util/collection/Weighted;getWeight()Lnet/minecraft/util/collection/Weight;
    • of

      static <T> Weighted.Present<T> of​(T data, int weight)
      Mappings:
      Namespace Name Mixin selector
      official a Lapy;a(Ljava/lang/Object;I)Lapy$b;
      intermediary method_34980 Lnet/minecraft/class_6008;method_34980(Ljava/lang/Object;I)Lnet/minecraft/class_6008$class_6010;
      named of Lnet/minecraft/util/collection/Weighted;of(Ljava/lang/Object;I)Lnet/minecraft/util/collection/Weighted$Present;