Interface Weighted

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

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

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
    static final record 
     
  • Method Summary

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

    • getWeight

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

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