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, @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
-
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.SummonEntityNested 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, @NotNull Point offset, @NotNull LevelBasedValue radius, boolean createFire, Codec.RawValue blockInteraction, Codec.RawValue smallParticle, Codec.RawValue largeParticle, @NotNull SoundEvent sound) Creates an instance of aExploderecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theattributeToUserrecord component.Returns the value of theblockInteractionrecord component.@NotNull StructCodec<EntityEffect.Explode> codec()booleanReturns the value of thecreateFirerecord component.@Nullable RegistryKey<DamageType> 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.@Nullable LevelBasedValueReturns the value of theknockbackMultiplierrecord component.Returns the value of thelargeParticlerecord component.@NotNull Pointoffset()Returns the value of theoffsetrecord component.@NotNull LevelBasedValueradius()Returns the value of theradiusrecord component.Returns the value of thesmallParticlerecord component.@NotNull SoundEventsound()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, @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 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
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 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
-