Package net.minecraft

Record Class class_10138

java.lang.Object
java.lang.Record
net.minecraft.class_10138
Record Components:
diameter -
All Implemented Interfaces:
class_10134

public record class_10138(float diameter) extends Record implements class_10134
Mappings:
Namespace Name
named net/minecraft/class_10138
intermediary net/minecraft/class_10138
official czi
named diameter
intermediary comp_3100
official c
  • Field Details

    • diameter

      private final float diameter
      The field for the diameter record component.
    • field_53821

      private static final float field_53821
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_53821 Lnet/minecraft/class_10138;field_53821:F
      intermediary field_53821 Lnet/minecraft/class_10138;field_53821:F
      official f Lczi;f:F
    • field_53819

      public static final com.mojang.serialization.MapCodec<class_10138> field_53819
      Mappings:
      Namespace Name Mixin selector
      named field_53819 Lnet/minecraft/class_10138;field_53819:Lcom/mojang/serialization/MapCodec;
      intermediary field_53819 Lnet/minecraft/class_10138;field_53819:Lcom/mojang/serialization/MapCodec;
      official a Lczi;a:Lcom/mojang/serialization/MapCodec;
    • field_53820

      public static final PacketCodec<RegistryByteBuf,class_10138> field_53820
      Mappings:
      Namespace Name Mixin selector
      named field_53820 Lnet/minecraft/class_10138;field_53820:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_53820 Lnet/minecraft/class_10138;field_53820:Lnet/minecraft/class_9139;
      official b Lczi;b:Lzb;
  • Constructor Details

    • class_10138

      public class_10138()
    • class_10138

      public class_10138(float float2)
  • Method Details

    • method_62864

      public class_10134.class_10135<class_10138> method_62864()
      Specified by:
      method_62864 in interface class_10134
      Mappings:
      Namespace Name Mixin selector
      named method_62864 Lnet/minecraft/class_10134;method_62864()Lnet/minecraft/class_10134$class_10135;
      intermediary method_62864 Lnet/minecraft/class_10134;method_62864()Lnet/minecraft/class_10134$class_10135;
      official a Lczf;a()Lczf$a;
    • method_62866

      public boolean method_62866(World world, ItemStack itemStack, LivingEntity livingEntity)
      Specified by:
      method_62866 in interface class_10134
      Mappings:
      Namespace Name Mixin selector
      named method_62866 Lnet/minecraft/class_10134;method_62866(Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;)Z
      intermediary method_62866 Lnet/minecraft/class_10134;method_62866(Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;Lnet/minecraft/class_1309;)Z
      official a Lczf;a(Ldeg;Lcvp;Lbuk;)Z
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • diameter

      public float diameter()
      Returns the value of the diameter record component.
      Returns:
      the value of the diameter record component