Class Weight

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

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

    • CODEC

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

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

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

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

    • Weight

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

    • of

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

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

      private static void validate(int weight)
      Mappings:
      Namespace Name Mixin selector
      named validate Lnet/minecraft/util/collection/Weight;validate(I)V
      intermediary method_34978 Lnet/minecraft/class_6007;method_34978(I)V
      official b Lbrr;b(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
      named equals Lnet/minecraft/util/collection/Weight;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_6007;equals(Ljava/lang/Object;)Z
      official equals Lbrr;equals(Ljava/lang/Object;)Z