Package net.minecraft

Record Class class_10707

java.lang.Object
java.lang.Record
net.minecraft.class_10707
Record Components:
blockDelaySeconds -
disableCooldownScale -
damageReductions -
itemDamage -
blockSound -
disableSound -

public record class_10707(float blockDelaySeconds, float disableCooldownScale, List<class_10707.class_10708> damageReductions, class_10707.class_10709 itemDamage, Optional<RegistryEntry<SoundEvent>> blockSound, Optional<RegistryEntry<SoundEvent>> disableSound) extends Record
Mappings:
Namespace Name
named net/minecraft/class_10707
intermediary net/minecraft/class_10707
official dat
named blockDelaySeconds
intermediary comp_3586
official c
named disableCooldownScale
intermediary comp_3587
official d
named damageReductions
intermediary comp_3588
official e
named itemDamage
intermediary comp_3589
official f
named blockSound
intermediary comp_3590
official g
named disableSound
intermediary comp_3591
official h
  • Field Details

    • blockDelaySeconds

      private final float blockDelaySeconds
      The field for the blockDelaySeconds record component.
    • disableCooldownScale

      private final float disableCooldownScale
      The field for the disableCooldownScale record component.
    • damageReductions

      private final List<class_10707.class_10708> damageReductions
      The field for the damageReductions record component.
    • itemDamage

      private final class_10707.class_10709 itemDamage
      The field for the itemDamage record component.
    • blockSound

      private final Optional<RegistryEntry<SoundEvent>> blockSound
      The field for the blockSound record component.
    • disableSound

      private final Optional<RegistryEntry<SoundEvent>> disableSound
      The field for the disableSound record component.
    • field_56301

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

      public static final PacketCodec<RegistryByteBuf,class_10707> field_56302
      Mappings:
      Namespace Name Mixin selector
      named field_56302 Lnet/minecraft/class_10707;field_56302:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_56302 Lnet/minecraft/class_10707;field_56302:Lnet/minecraft/class_9139;
      official b Ldat;b:Lyu;
  • Constructor Details

  • Method Details

    • method_67199

      public void method_67199(ServerWorld serverWorld, LivingEntity livingEntity)
      Mappings:
      Namespace Name Mixin selector
      named method_67199 Lnet/minecraft/class_10707;method_67199(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)V
      intermediary method_67199 Lnet/minecraft/class_10707;method_67199(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)V
      official a Ldat;a(Laro;Lbwz;)V
    • method_67200

      public void method_67200(ServerWorld serverWorld, LivingEntity livingEntity, float float2, ItemStack itemStack)
      Mappings:
      Namespace Name Mixin selector
      named method_67200 Lnet/minecraft/class_10707;method_67200(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;FLnet/minecraft/item/ItemStack;)V
      intermediary method_67200 Lnet/minecraft/class_10707;method_67200(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;FLnet/minecraft/class_1799;)V
      official a Ldat;a(Laro;Lbwz;FLcys;)V
    • method_67204

      public void method_67204(World world, ItemStack itemStack, LivingEntity livingEntity, Hand hand, float float2)
      Mappings:
      Namespace Name Mixin selector
      named method_67204 Lnet/minecraft/class_10707;method_67204(Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/util/Hand;F)V
      intermediary method_67204 Lnet/minecraft/class_10707;method_67204(Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;Lnet/minecraft/class_1309;Lnet/minecraft/class_1268;F)V
      official a Ldat;a(Ldip;Lcys;Lbwz;Lbtx;F)V
    • method_67198

      private int method_67198(float float2)
      Mappings:
      Namespace Name Mixin selector
      named method_67198 Lnet/minecraft/class_10707;method_67198(F)I
      intermediary method_67198 Lnet/minecraft/class_10707;method_67198(F)I
      official a Ldat;a(F)I
    • method_67197

      public int method_67197()
      Mappings:
      Namespace Name Mixin selector
      named method_67197 Lnet/minecraft/class_10707;method_67197()I
      intermediary method_67197 Lnet/minecraft/class_10707;method_67197()I
      official a Ldat;a()I
    • method_67202

      public float method_67202(DamageSource damageSource, float float2)
      Mappings:
      Namespace Name Mixin selector
      named method_67202 Lnet/minecraft/class_10707;method_67202(Lnet/minecraft/entity/damage/DamageSource;F)F
      intermediary method_67202 Lnet/minecraft/class_10707;method_67202(Lnet/minecraft/class_1282;F)F
      official a Ldat;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.
    • blockDelaySeconds

      public float blockDelaySeconds()
      Returns the value of the blockDelaySeconds record component.
      Returns:
      the value of the blockDelaySeconds record component
    • disableCooldownScale

      public float disableCooldownScale()
      Returns the value of the disableCooldownScale record component.
      Returns:
      the value of the disableCooldownScale record component
    • damageReductions

      public List<class_10707.class_10708> damageReductions()
      Returns the value of the damageReductions record component.
      Returns:
      the value of the damageReductions record component
    • itemDamage

      public class_10707.class_10709 itemDamage()
      Returns the value of the itemDamage record component.
      Returns:
      the value of the itemDamage record component
    • blockSound

      public Optional<RegistryEntry<SoundEvent>> blockSound()
      Returns the value of the blockSound record component.
      Returns:
      the value of the blockSound record component
    • disableSound

      public Optional<RegistryEntry<SoundEvent>> disableSound()
      Returns the value of the disableSound record component.
      Returns:
      the value of the disableSound record component