Module net.minestom.server
Package net.minestom.server.item.enchant
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, Point offset, LevelBasedValue radius, boolean createFire, Codec.RawValue blockInteraction, Codec.RawValue smallParticle, Codec.RawValue largeParticle, SoundEvent sound)
extends Record
implements EntityEffect, LocationEffect
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minestom.server.item.enchant.EntityEffect
EntityEffect.AllOf, EntityEffect.ApplyPotionEffect, EntityEffect.ChangeItemDamage, EntityEffect.DamageEntity, EntityEffect.Explode, EntityEffect.Ignite, EntityEffect.PlaySound, EntityEffect.ReplaceBlock, EntityEffect.ReplaceDisc, EntityEffect.RunFunction, EntityEffect.SetBlockProperties, EntityEffect.SpawnParticles, EntityEffect.SummonEntity
Nested classes/interfaces inherited from interface net.minestom.server.item.enchant.LocationEffect
LocationEffect.AllOf
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExplode
(boolean attributeToUser, @Nullable RegistryKey<DamageType> damageType, @Nullable LevelBasedValue knockbackMultiplier, Codec.RawValue immuneBlocks, Point offset, LevelBasedValue radius, boolean createFire, Codec.RawValue blockInteraction, Codec.RawValue smallParticle, Codec.RawValue largeParticle, SoundEvent sound) Creates an instance of aExplode
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of theattributeToUser
record component.Returns the value of theblockInteraction
record component.codec()
boolean
Returns the value of thecreateFire
record component.@Nullable RegistryKey
<DamageType> Returns the value of thedamageType
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theimmuneBlocks
record component.@Nullable LevelBasedValue
Returns the value of theknockbackMultiplier
record component.Returns the value of thelargeParticle
record component.offset()
Returns the value of theoffset
record component.radius()
Returns the value of theradius
record component.Returns the value of thesmallParticle
record component.sound()
Returns the value of thesound
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
Explode
public Explode(boolean attributeToUser, @Nullable @Nullable RegistryKey<DamageType> damageType, @Nullable @Nullable LevelBasedValue knockbackMultiplier, @Nullable Codec.RawValue immuneBlocks, Point offset, LevelBasedValue radius, boolean createFire, Codec.RawValue blockInteraction, Codec.RawValue smallParticle, Codec.RawValue largeParticle, SoundEvent sound) Creates an instance of aExplode
record class.- Parameters:
attributeToUser
- the value for theattributeToUser
record componentdamageType
- the value for thedamageType
record componentknockbackMultiplier
- the value for theknockbackMultiplier
record componentimmuneBlocks
- the value for theimmuneBlocks
record componentoffset
- the value for theoffset
record componentradius
- the value for theradius
record componentcreateFire
- the value for thecreateFire
record componentblockInteraction
- the value for theblockInteraction
record componentsmallParticle
- the value for thesmallParticle
record componentlargeParticle
- the value for thelargeParticle
record componentsound
- the value for thesound
record component
-
-
Method Details
-
codec
- Specified by:
codec
in interfaceEntityEffect
- Specified by:
codec
in interfaceLocationEffect
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
attributeToUser
public boolean attributeToUser()Returns the value of theattributeToUser
record component.- Returns:
- the value of the
attributeToUser
record component
-
damageType
Returns the value of thedamageType
record component.- Returns:
- the value of the
damageType
record component
-
knockbackMultiplier
Returns the value of theknockbackMultiplier
record component.- Returns:
- the value of the
knockbackMultiplier
record component
-
immuneBlocks
Returns the value of theimmuneBlocks
record component.- Returns:
- the value of the
immuneBlocks
record component
-
offset
Returns the value of theoffset
record component.- Returns:
- the value of the
offset
record component
-
radius
Returns the value of theradius
record component.- Returns:
- the value of the
radius
record component
-
createFire
public boolean createFire()Returns the value of thecreateFire
record component.- Returns:
- the value of the
createFire
record component
-
blockInteraction
Returns the value of theblockInteraction
record component.- Returns:
- the value of the
blockInteraction
record component
-
smallParticle
Returns the value of thesmallParticle
record component.- Returns:
- the value of the
smallParticle
record component
-
largeParticle
Returns the value of thelargeParticle
record component.- Returns:
- the value of the
largeParticle
record component
-
sound
Returns the value of thesound
record component.- Returns:
- the value of the
sound
record component
-