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 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.SummonEntityNested classes/interfaces inherited from interface 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 aExploderecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theattributeToUserrecord component.Returns the value of theblockInteractionrecord component.codec()booleanReturns the value of thecreateFirerecord component.Returns the value of thedamageTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theimmuneBlocksrecord component.Returns the value of theknockbackMultiplierrecord component.Returns the value of thelargeParticlerecord component.offset()Returns the value of theoffsetrecord component.radius()Returns the value of theradiusrecord component.Returns the value of thesmallParticlerecord component.sound()Returns the value of thesoundrecord component.final StringtoString()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 aExploderecord class.- Parameters:
attributeToUser- the value for theattributeToUserrecord componentdamageType- the value for thedamageTyperecord componentknockbackMultiplier- the value for theknockbackMultiplierrecord componentimmuneBlocks- the value for theimmuneBlocksrecord componentoffset- the value for theoffsetrecord componentradius- the value for theradiusrecord componentcreateFire- the value for thecreateFirerecord componentblockInteraction- the value for theblockInteractionrecord componentsmallParticle- the value for thesmallParticlerecord componentlargeParticle- the value for thelargeParticlerecord componentsound- the value for thesoundrecord component
-
-
Method Details
-
codec
- Specified by:
codecin interfaceEntityEffect- Specified by:
codecin interfaceLocationEffect
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
attributeToUser
public boolean attributeToUser()Returns the value of theattributeToUserrecord component.- Returns:
- the value of the
attributeToUserrecord component
-
damageType
Returns the value of thedamageTyperecord component.- Returns:
- the value of the
damageTyperecord component
-
knockbackMultiplier
Returns the value of theknockbackMultiplierrecord component.- Returns:
- the value of the
knockbackMultiplierrecord component
-
immuneBlocks
Returns the value of theimmuneBlocksrecord component.- Returns:
- the value of the
immuneBlocksrecord component
-
offset
Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
radius
Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-
createFire
public boolean createFire()Returns the value of thecreateFirerecord component.- Returns:
- the value of the
createFirerecord component
-
blockInteraction
Returns the value of theblockInteractionrecord component.- Returns:
- the value of the
blockInteractionrecord component
-
smallParticle
Returns the value of thesmallParticlerecord component.- Returns:
- the value of the
smallParticlerecord component
-
largeParticle
Returns the value of thelargeParticlerecord component.- Returns:
- the value of the
largeParticlerecord component
-
sound
Returns the value of thesoundrecord component.- Returns:
- the value of the
soundrecord component
-