Class Weighted.Present<T>

java.lang.Object
net.minecraft.util.collection.Weighted.Present<T>
All Implemented Interfaces:
Weighted
Enclosing interface:
Weighted

public static class Weighted.Present<T> extends Object implements Weighted
Mappings:
Namespace Name
official bfk$b
intermediary net/minecraft/class_6008$class_6010
named net/minecraft/util/collection/Weighted$Present
  • Field Details

    • data

      private final T data
      Mappings:
      Namespace Name Mixin selector
      official a Lbfk$b;a:Ljava/lang/Object;
      intermediary field_29932 Lnet/minecraft/class_6008$class_6010;field_29932:Ljava/lang/Object;
      named data Lnet/minecraft/util/collection/Weighted$Present;data:Ljava/lang/Object;
    • weight

      private final Weight weight
      Mappings:
      Namespace Name Mixin selector
      official b Lbfk$b;b:Lbfj;
      intermediary field_29933 Lnet/minecraft/class_6008$class_6010;field_29933:Lnet/minecraft/class_6007;
      named weight Lnet/minecraft/util/collection/Weighted$Present;weight:Lnet/minecraft/util/collection/Weight;
  • Constructor Details

    • Present

      Present(T data, Weight weight)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbfk$b;<init>(Ljava/lang/Object;Lbfj;)V
      intermediary <init> Lnet/minecraft/class_6008$class_6010;<init>(Ljava/lang/Object;Lnet/minecraft/class_6007;)V
      named <init> Lnet/minecraft/util/collection/Weighted$Present;<init>(Ljava/lang/Object;Lnet/minecraft/util/collection/Weight;)V
  • Method Details

    • getData

      public T getData()
      Mappings:
      Namespace Name Mixin selector
      official b Lbfk$b;b()Ljava/lang/Object;
      intermediary method_34983 Lnet/minecraft/class_6008$class_6010;method_34983()Ljava/lang/Object;
      named getData Lnet/minecraft/util/collection/Weighted$Present;getData()Ljava/lang/Object;
    • getWeight

      public Weight getWeight()
      Specified by:
      getWeight in interface Weighted
      Mappings:
      Namespace Name Mixin selector
      official a Lbfk;a()Lbfj;
      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;
    • createCodec

      public static <E> com.mojang.serialization.Codec<Weighted.Present<E>> createCodec(com.mojang.serialization.Codec<E> dataCodec)
      Mappings:
      Namespace Name Mixin selector
      official a Lbfk$b;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      intermediary method_34981 Lnet/minecraft/class_6008$class_6010;method_34981(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      named createCodec Lnet/minecraft/util/collection/Weighted$Present;createCodec(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;