All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minestom.server.instance.ExplosionSupplier Maven / Gradle / Ivy

There is a newer version: 7320437640
Show newest version
package net.minestom.server.instance;

import net.kyori.adventure.nbt.CompoundBinaryTag;

@FunctionalInterface
public interface ExplosionSupplier {

    /**
     * Creates a new explosion
     *
     * @param centerX        center X of the explosion
     * @param centerY        center Y of the explosion
     * @param centerZ        center Z of the explosion
     * @param strength       strength of the explosion
     * @param additionalData data passed via {@link Instance#explode(float, float, float, float, CompoundBinaryTag)} )}. Can be null
     * @return Explosion object representing the algorithm to use
     */
    Explosion createExplosion(float centerX, float centerY, float centerZ, float strength, CompoundBinaryTag additionalData);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy