Package net.minecraft

Record Class class_10707.class_10708

java.lang.Object
java.lang.Record
net.minecraft.class_10707.class_10708
Record Components:
type -
base -
factor -
Enclosing class:
class_10707

public static record class_10707.class_10708(Optional<RegistryEntryList<DamageType>> type, float base, float factor) extends Record
Mappings:
Namespace Name
named net/minecraft/class_10707$class_10708
intermediary net/minecraft/class_10707$class_10708
official dat$a
named type
intermediary comp_3592
official d
named base
intermediary comp_3593
official e
named factor
intermediary comp_3594
official f
  • Field Details

    • type

      private final Optional<RegistryEntryList<DamageType>> type
      The field for the type record component.
    • base

      private final float base
      The field for the base record component.
    • factor

      private final float factor
      The field for the factor record component.
    • field_56303

      public static final com.mojang.serialization.Codec<class_10707.class_10708> field_56303
      Mappings:
      Namespace Name Mixin selector
      named field_56303 Lnet/minecraft/class_10707$class_10708;field_56303:Lcom/mojang/serialization/Codec;
      intermediary field_56303 Lnet/minecraft/class_10707$class_10708;field_56303:Lcom/mojang/serialization/Codec;
      official a Ldat$a;a:Lcom/mojang/serialization/Codec;
    • field_56304

      public static final PacketCodec<RegistryByteBuf,class_10707.class_10708> field_56304
      Mappings:
      Namespace Name Mixin selector
      named field_56304 Lnet/minecraft/class_10707$class_10708;field_56304:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_56304 Lnet/minecraft/class_10707$class_10708;field_56304:Lnet/minecraft/class_9139;
      official b Ldat$a;b:Lyu;
    • field_56305

      public static final class_10707.class_10708 field_56305
      Mappings:
      Namespace Name Mixin selector
      named field_56305 Lnet/minecraft/class_10707$class_10708;field_56305:Lnet/minecraft/class_10707$class_10708;
      intermediary field_56305 Lnet/minecraft/class_10707$class_10708;field_56305:Lnet/minecraft/class_10707$class_10708;
      official c Ldat$a;c:Ldat$a;
  • Constructor Details

  • Method Details

    • method_67206

      public float method_67206(DamageSource damageSource, float float2)
      Mappings:
      Namespace Name Mixin selector
      named method_67206 Lnet/minecraft/class_10707$class_10708;method_67206(Lnet/minecraft/entity/damage/DamageSource;F)F
      intermediary method_67206 Lnet/minecraft/class_10707$class_10708;method_67206(Lnet/minecraft/class_1282;F)F
      official a Ldat$a;a(Lbup;F)F
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • type

      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • base

      public float base()
      Returns the value of the base record component.
      Returns:
      the value of the base record component
    • factor

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