Interface Weighted

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

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

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
    static class 
     
  • 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
      official a Layv;a()Layu;
      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 Layv;a(Ljava/lang/Object;I)Layv$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;