Record Class KineticWeaponComponent

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

public record KineticWeaponComponent(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 doq
named contactCooldownTicks
intermediary comp_5145
official c
named delayTicks
intermediary comp_4957
official d
named dismountConditions
intermediary comp_4958
official e
named knockbackConditions
intermediary comp_4959
official f
named damageConditions
intermediary comp_4960
official g
named forwardMovement
intermediary comp_4961
official h
named damageMultiplier
intermediary comp_4962
official i
named sound
intermediary comp_4963
official j
named hitSound
intermediary comp_4964
official k
  • Field Details

  • 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 Ldoq;a(Lcgk;)Lftm;
    • 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 Ldoq;b(Lcgk;)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 Ldoq;c(Lcgk;)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 Ldoq;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 Ldoq;a(Ldlt;ILchl;Lcgv;)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.
    • 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