Package net.minestom.server.instance
Interface ExplosionSupplier
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptioncreateExplosion
(float centerX, float centerY, float centerZ, float strength, net.kyori.adventure.nbt.CompoundBinaryTag additionalData) Creates a new explosion
-
Method Details
-
createExplosion
Explosion createExplosion(float centerX, float centerY, float centerZ, float strength, net.kyori.adventure.nbt.CompoundBinaryTag additionalData) Creates a new explosion- Parameters:
centerX
- center X of the explosioncenterY
- center Y of the explosioncenterZ
- center Z of the explosionstrength
- strength of the explosionadditionalData
- data passed viaInstance.explode(float, float, float, float, CompoundBinaryTag)
)}. Can be null- Returns:
- Explosion object representing the algorithm to use
-