Class Weight

java.lang.Object
net.minecraft.util.collection.Weight

public class Weight extends Object
Mappings:
Namespace Name
official bci
intermediary net/minecraft/class_6007
named net/minecraft/util/collection/Weight
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<Weight> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lbci;a:Lcom/mojang/serialization/Codec;
      intermediary field_29927 Lnet/minecraft/class_6007;field_29927:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/util/collection/Weight;CODEC:Lcom/mojang/serialization/Codec;
    • DEFAULT

      private static final Weight DEFAULT
      Mappings:
      Namespace Name Mixin selector
      official b Lbci;b:Lbci;
      intermediary field_29928 Lnet/minecraft/class_6007;field_29928:Lnet/minecraft/class_6007;
      named DEFAULT Lnet/minecraft/util/collection/Weight;DEFAULT:Lnet/minecraft/util/collection/Weight;
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official c Lbci;c:Lorg/slf4j/Logger;
      intermediary field_29929 Lnet/minecraft/class_6007;field_29929:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/util/collection/Weight;LOGGER:Lorg/slf4j/Logger;
    • value

      private final int value
      Mappings:
      Namespace Name Mixin selector
      official d Lbci;d:I
      intermediary field_29930 Lnet/minecraft/class_6007;field_29930:I
      named value Lnet/minecraft/util/collection/Weight;value:I
  • Constructor Details

    • Weight

      private Weight(int weight)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbci;<init>(I)V
      intermediary <init> Lnet/minecraft/class_6007;<init>(I)V
      named <init> Lnet/minecraft/util/collection/Weight;<init>(I)V
  • Method Details

    • of

      public static Weight of(int weight)
      Mappings:
      Namespace Name Mixin selector
      official a Lbci;a(I)Lbci;
      intermediary method_34977 Lnet/minecraft/class_6007;method_34977(I)Lnet/minecraft/class_6007;
      named of Lnet/minecraft/util/collection/Weight;of(I)Lnet/minecraft/util/collection/Weight;
    • getValue

      public int getValue()
      Mappings:
      Namespace Name Mixin selector
      official a Lbci;a()I
      intermediary method_34976 Lnet/minecraft/class_6007;method_34976()I
      named getValue Lnet/minecraft/util/collection/Weight;getValue()I
    • validate

      private static void validate(int weight)
      Mappings:
      Namespace Name Mixin selector
      official b Lbci;b(I)V
      intermediary method_34978 Lnet/minecraft/class_6007;method_34978(I)V
      named validate Lnet/minecraft/util/collection/Weight;validate(I)V
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      official equals Lbci;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_6007;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/util/collection/Weight;equals(Ljava/lang/Object;)Z