Class ExplosionCreator

java.lang.Object
com.hbm_m.particle.helper.ExplosionCreator
All Implemented Interfaces:
IParticleCreator

public class ExplosionCreator extends Object implements IParticleCreator
Порт com.hbm.particle.helper.ExplosionCreator (1.7.10). Ключевая механика звука 1:1: - скорость звука: 17.15 * 0.5 = 8.575 блоков/тик; - клиент выбирает near/far вариант по dist <= soundRange * 0.4; - звук воспроизводится через delayed-очередь с задержкой dist / speedOfSound тиков; - громкость 1000F (звук «глобальный», слышен по всему soundRange), питч 0.9 + rand * 0.2. Пресеты (cloudCount, cloudScale, cloudSpeedMult, waveScale, debrisCount, debrisSize, debrisRetry, debrisVelocity, debrisHorizontalDeviation, debrisVerticalOffset, soundRange): - small: ( 10, 2.0F, 0.5F, 25F, 5, 8, 20, 0.75F, 1F, -2F, 150) - standard: ( 15, 5.0F, 1.0F, 45F, 10, 16, 50, 1.00F, 3F, -2F, 200) - large: ( 30, 6.5F, 2.0F, 65F, 25, 16, 50, 1.25F, 3F, -2F, 350)
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final double
    Скорость распространения звука, блоков/тик (1.7.10: 17.15D * 0.5).
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    composeEffect(net.minecraft.server.level.ServerLevel level, double x, double y, double z, int cloudCount, float cloudScale, float cloudSpeedMult, float waveScale, int debrisCount, int debrisSize, int debrisRetry, float debrisVelocity, float debrisHorizontalDeviation, float debrisVerticalOffset, float soundRange)
     
    static void
    composeEffectLarge(net.minecraft.server.level.ServerLevel level, double x, double y, double z)
    tier 3 burst / inferno
    static void
    composeEffectSmall(net.minecraft.server.level.ServerLevel level, double x, double y, double z)
    tier 1 generic / incendiary
    static void
    composeEffectStandard(net.minecraft.server.level.ServerLevel level, double x, double y, double z)
    tier 2 strong / stealth
    void
    makeParticle(net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.world.entity.player.Player player, net.minecraft.util.RandomSource rand, double x, double y, double z, net.minecraft.nbt.CompoundTag tag)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SPEED_OF_SOUND

      public static final double SPEED_OF_SOUND
      Скорость распространения звука, блоков/тик (1.7.10: 17.15D * 0.5).
      See Also:
  • Constructor Details

    • ExplosionCreator

      public ExplosionCreator()
  • Method Details

    • composeEffect

      public static void composeEffect(net.minecraft.server.level.ServerLevel level, double x, double y, double z, int cloudCount, float cloudScale, float cloudSpeedMult, float waveScale, int debrisCount, int debrisSize, int debrisRetry, float debrisVelocity, float debrisHorizontalDeviation, float debrisVerticalOffset, float soundRange)
    • composeEffectSmall

      public static void composeEffectSmall(net.minecraft.server.level.ServerLevel level, double x, double y, double z)
      tier 1 generic / incendiary
    • composeEffectStandard

      public static void composeEffectStandard(net.minecraft.server.level.ServerLevel level, double x, double y, double z)
      tier 2 strong / stealth
    • composeEffectLarge

      public static void composeEffectLarge(net.minecraft.server.level.ServerLevel level, double x, double y, double z)
      tier 3 burst / inferno
    • makeParticle

      public void makeParticle(net.minecraft.client.multiplayer.ClientLevel level, net.minecraft.world.entity.player.Player player, net.minecraft.util.RandomSource rand, double x, double y, double z, net.minecraft.nbt.CompoundTag tag)
      Specified by:
      makeParticle in interface IParticleCreator