Record Class KineticWeaponComponent

java.lang.Object
java.lang.Record
net.minecraft.component.type.KineticWeaponComponent
Record Components:
minReach -
maxReach -
hitboxMargin -
contactCooldownTicks -
delayTicks -
dismountConditions -
knockbackConditions -
damageConditions -
forwardMovement -
damageMultiplier -
sound -
hitSound -

public record KineticWeaponComponent(float minReach, float maxReach, float hitboxMargin, int contactCooldownTicks, int delayTicks, Optional<KineticWeaponComponent.Condition> dismountConditions, Optional<KineticWeaponComponent.Condition> knockbackConditions, Optional<KineticWeaponComponent.Condition> damageConditions, float forwardMovement, float damageMultiplier, Optional<RegistryEntry<SoundEvent>> sound, Optional<RegistryEntry<SoundEvent>> hitSound) extends Record
Mappings:
Namespace Name
named net/minecraft/component/type/KineticWeaponComponent
intermediary net/minecraft/class_12123
official dnb
named minReach
intermediary comp_4954
official c
named maxReach
intermediary comp_4955
official d
named hitboxMargin
intermediary comp_4956
official e
named contactCooldownTicks
intermediary comp_5145
official f
named delayTicks
intermediary comp_4957
official g
named dismountConditions
intermediary comp_4958
official h
named knockbackConditions
intermediary comp_4959
official i
named damageConditions
intermediary comp_4960
official j
named forwardMovement
intermediary comp_4961
official k
named damageMultiplier
intermediary comp_4962
official l
named sound
intermediary comp_4963
official m
named hitSound
intermediary comp_4964
official n
  • Field Details

    • minReach

      private final float minReach
      The field for the minReach record component.
    • maxReach

      private final float maxReach
      The field for the maxReach record component.
    • hitboxMargin

      private final float hitboxMargin
      The field for the hitboxMargin record component.
    • contactCooldownTicks

      private final int contactCooldownTicks
      The field for the contactCooldownTicks record component.
    • delayTicks

      private final int delayTicks
      The field for the delayTicks record component.
    • dismountConditions

      private final Optional<KineticWeaponComponent.Condition> dismountConditions
      The field for the dismountConditions record component.
    • knockbackConditions

      private final Optional<KineticWeaponComponent.Condition> knockbackConditions
      The field for the knockbackConditions record component.
    • damageConditions

      private final Optional<KineticWeaponComponent.Condition> damageConditions
      The field for the damageConditions record component.
    • forwardMovement

      private final float forwardMovement
      The field for the forwardMovement record component.
    • damageMultiplier

      private final float damageMultiplier
      The field for the damageMultiplier record component.
    • sound

      private final Optional<RegistryEntry<SoundEvent>> sound
      The field for the sound record component.
    • hitSound

      private final Optional<RegistryEntry<SoundEvent>> hitSound
      The field for the hitSound record component.
    • CODEC

      public static final com.mojang.serialization.Codec<KineticWeaponComponent> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/component/type/KineticWeaponComponent;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_63407 Lnet/minecraft/class_12123;field_63407:Lcom/mojang/serialization/Codec;
      official a Ldnb;a:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,KineticWeaponComponent> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/component/type/KineticWeaponComponent;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_63408 Lnet/minecraft/class_12123;field_63408:Lnet/minecraft/class_9139;
      official b Ldnb;b:Laat;
  • Constructor Details

  • Method Details

    • getAmplifiedMovement

      public static Vec3d getAmplifiedMovement(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named getAmplifiedMovement Lnet/minecraft/component/type/KineticWeaponComponent;getAmplifiedMovement(Lnet/minecraft/entity/Entity;)Lnet/minecraft/util/math/Vec3d;
      intermediary method_75229 Lnet/minecraft/class_12123;method_75229(Lnet/minecraft/class_1297;)Lnet/minecraft/class_243;
      official a Ldnb;a(Lcgd;)Lfrd;
    • playSound

      public void playSound(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named playSound Lnet/minecraft/component/type/KineticWeaponComponent;playSound(Lnet/minecraft/entity/Entity;)V
      intermediary method_75234 Lnet/minecraft/class_12123;method_75234(Lnet/minecraft/class_1297;)V
      official b Ldnb;b(Lcgd;)V
    • playHitSound

      public void playHitSound(Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named playHitSound Lnet/minecraft/component/type/KineticWeaponComponent;playHitSound(Lnet/minecraft/entity/Entity;)V
      intermediary method_75236 Lnet/minecraft/class_12123;method_75236(Lnet/minecraft/class_1297;)V
      official c Ldnb;c(Lcgd;)V
    • getUseTicks

      public int getUseTicks()
      Mappings:
      Namespace Name Mixin selector
      named getUseTicks Lnet/minecraft/component/type/KineticWeaponComponent;getUseTicks()I
      intermediary method_75228 Lnet/minecraft/class_12123;method_75228()I
      official a Ldnb;a()I
    • usageTick

      public void usageTick(ItemStack stack, int remainingUseTicks, LivingEntity user, EquipmentSlot slot)
      Mappings:
      Namespace Name Mixin selector
      named usageTick Lnet/minecraft/component/type/KineticWeaponComponent;usageTick(Lnet/minecraft/item/ItemStack;ILnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/EquipmentSlot;)V
      intermediary method_75233 Lnet/minecraft/class_12123;method_75233(Lnet/minecraft/class_1799;ILnet/minecraft/class_1309;Lnet/minecraft/class_1304;)V
      official a Ldnb;a(Ldkf;ILche;Lcgn;)V
    • 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.
    • minReach

      public float minReach()
      Returns the value of the minReach record component.
      Returns:
      the value of the minReach record component
    • maxReach

      public float maxReach()
      Returns the value of the maxReach record component.
      Returns:
      the value of the maxReach record component
    • hitboxMargin

      public float hitboxMargin()
      Returns the value of the hitboxMargin record component.
      Returns:
      the value of the hitboxMargin record component
    • contactCooldownTicks

      public int contactCooldownTicks()
      Returns the value of the contactCooldownTicks record component.
      Returns:
      the value of the contactCooldownTicks record component
    • delayTicks

      public int delayTicks()
      Returns the value of the delayTicks record component.
      Returns:
      the value of the delayTicks record component
    • dismountConditions

      public Optional<KineticWeaponComponent.Condition> dismountConditions()
      Returns the value of the dismountConditions record component.
      Returns:
      the value of the dismountConditions record component
    • knockbackConditions

      public Optional<KineticWeaponComponent.Condition> knockbackConditions()
      Returns the value of the knockbackConditions record component.
      Returns:
      the value of the knockbackConditions record component
    • damageConditions

      public Optional<KineticWeaponComponent.Condition> damageConditions()
      Returns the value of the damageConditions record component.
      Returns:
      the value of the damageConditions record component
    • forwardMovement

      public float forwardMovement()
      Returns the value of the forwardMovement record component.
      Returns:
      the value of the forwardMovement record component
    • damageMultiplier

      public float damageMultiplier()
      Returns the value of the damageMultiplier record component.
      Returns:
      the value of the damageMultiplier record component
    • sound

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

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