Contents
Class ExplosionUtils
java.lang.Object
com.hypixel.hytale.server.core.entity.ExplosionUtils
A utility class for explosion-specific functionality and utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidperformExplosion(Damage.Source damageSource, org.joml.Vector3d position, Rotation3f rotation, ExplosionConfig config, Ref<EntityStore> ignoreRef, ComponentAccessor<EntityStore> componentAccessor, ComponentAccessor<ChunkStore> chunkStore) Called to perform an explosion at the given position, referencing the provided explosion config.
-
Constructor Details
-
ExplosionUtils
public ExplosionUtils()
-
-
Method Details
-
performExplosion
public static void performExplosion(@Nonnull Damage.Source damageSource, @Nonnull org.joml.Vector3d position, @Nonnull Rotation3f rotation, @Nonnull ExplosionConfig config, @Nullable Ref<EntityStore> ignoreRef, @Nonnull ComponentAccessor<EntityStore> componentAccessor, @Nonnull ComponentAccessor<ChunkStore> chunkStore) Called to perform an explosion at the given position, referencing the provided explosion config.- Parameters:
position- The position of the explosion in the world.config- TheExplosionConfigto reference when performing this explosion.ignoreRef- The entity reference of the entity that should be ignored by this explosion, if any.componentAccessor- Theinvalid input: '<' EntityStore >for component access.chunkStore- Theinvalid input: '<' ChunkStore >for component access.
-