Record Class EntityEffect.Explode

java.lang.Object
java.lang.Record
net.minestom.server.item.enchant.EntityEffect.Explode
All Implemented Interfaces:
Enchantment.Effect, EntityEffect, LocationEffect
Enclosing interface:
EntityEffect

public static record EntityEffect.Explode(boolean attributeToUser, @Nullable RegistryKey<DamageType> damageType, @Nullable LevelBasedValue knockbackMultiplier, Codec.RawValue immuneBlocks, @NotNull Point offset, @NotNull LevelBasedValue radius, boolean createFire, Codec.RawValue blockInteraction, Codec.RawValue smallParticle, Codec.RawValue largeParticle, @NotNull SoundEvent sound) extends Record implements EntityEffect, LocationEffect
  • Field Details

  • Constructor Details

    • Explode

      public Explode(boolean attributeToUser, @Nullable @Nullable RegistryKey<DamageType> damageType, @Nullable @Nullable LevelBasedValue knockbackMultiplier, @Nullable Codec.RawValue immuneBlocks, @NotNull @NotNull Point offset, @NotNull @NotNull LevelBasedValue radius, boolean createFire, @NotNull Codec.RawValue blockInteraction, @NotNull Codec.RawValue smallParticle, @NotNull Codec.RawValue largeParticle, @NotNull @NotNull SoundEvent sound)
      Creates an instance of a Explode record class.
      Parameters:
      attributeToUser - the value for the attributeToUser record component
      damageType - the value for the damageType record component
      knockbackMultiplier - the value for the knockbackMultiplier record component
      immuneBlocks - the value for the immuneBlocks record component
      offset - the value for the offset record component
      radius - the value for the radius record component
      createFire - the value for the createFire record component
      blockInteraction - the value for the blockInteraction record component
      smallParticle - the value for the smallParticle record component
      largeParticle - the value for the largeParticle record component
      sound - the value for the sound record component
  • Method Details

    • codec

      @NotNull public @NotNull StructCodec<EntityEffect.Explode> codec()
      Specified by:
      codec in interface EntityEffect
      Specified by:
      codec in interface LocationEffect
    • 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 o)
      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 the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • attributeToUser

      public boolean attributeToUser()
      Returns the value of the attributeToUser record component.
      Returns:
      the value of the attributeToUser record component
    • damageType

      @Nullable public @Nullable RegistryKey<DamageType> damageType()
      Returns the value of the damageType record component.
      Returns:
      the value of the damageType record component
    • knockbackMultiplier

      @Nullable public @Nullable LevelBasedValue knockbackMultiplier()
      Returns the value of the knockbackMultiplier record component.
      Returns:
      the value of the knockbackMultiplier record component
    • immuneBlocks

      @Nullable public Codec.RawValue immuneBlocks()
      Returns the value of the immuneBlocks record component.
      Returns:
      the value of the immuneBlocks record component
    • offset

      @NotNull public @NotNull Point offset()
      Returns the value of the offset record component.
      Returns:
      the value of the offset record component
    • radius

      @NotNull public @NotNull LevelBasedValue radius()
      Returns the value of the radius record component.
      Returns:
      the value of the radius record component
    • createFire

      public boolean createFire()
      Returns the value of the createFire record component.
      Returns:
      the value of the createFire record component
    • blockInteraction

      @NotNull public Codec.RawValue blockInteraction()
      Returns the value of the blockInteraction record component.
      Returns:
      the value of the blockInteraction record component
    • smallParticle

      @NotNull public Codec.RawValue smallParticle()
      Returns the value of the smallParticle record component.
      Returns:
      the value of the smallParticle record component
    • largeParticle

      @NotNull public Codec.RawValue largeParticle()
      Returns the value of the largeParticle record component.
      Returns:
      the value of the largeParticle record component
    • sound

      @NotNull public @NotNull SoundEvent sound()
      Returns the value of the sound record component.
      Returns:
      the value of the sound record component