java.lang.Object
mod.chloeprime.gunsmithlib.common.gunpack_extension.shared.hit_particle.HitParticleData

public class HitParticleData extends Object
命中粒子。 可以写在枪械 data 和子弹 data 中。
从以下版本开始:
5.2.0
  • 构造器详细资料

    • HitParticleData

      public HitParticleData()
  • 方法详细资料

    • getParticleId

      @Nullable public net.minecraft.resources.ResourceLocation getParticleId()
    • getParticle

      @Nullable public net.minecraft.core.particles.ParticleOptions getParticle(net.minecraft.core.HolderLookup.Provider registry)
    • getDX

      public double getDX()
    • getDY

      public double getDY()
    • getDZ

      public double getDZ()
    • getSpeed

      public double getSpeed()
    • getCount

      public int getCount()
    • isExplosiveParticleAlternate

      public boolean isExplosiveParticleAlternate()
    • isAdaptiveBlockParticle

      @Nullable public Boolean isAdaptiveBlockParticle()
    • isAaaParticle

      @Nullable public Boolean isAaaParticle()
    • getAaaParticleData

      @Nullable public AAAParticleData getAaaParticleData()
    • of

      public static List<HitParticleData> of(net.minecraft.world.item.ItemStack gun)
      获取这把武器上实际生效的 particle data。 枪上配置的优先,其次使用子弹配置上的。
      参数:
      gun - 武器物品
      返回:
      这把武器上实际生效的 particle data。