Class ParticleType<T extends ParticleEffect>

java.lang.Object
net.minecraft.particle.ParticleType<T>
Direct Known Subclasses:
DefaultParticleType

public abstract class ParticleType<T extends ParticleEffect> extends Object
Mappings:
Namespace Name
official jw
intermediary net/minecraft/class_2396
named net/minecraft/particle/ParticleType
  • Field Details

    • alwaysShow

      private final boolean alwaysShow
      Mappings:
      Namespace Name Mixin selector
      official a Ljw;a:Z
      intermediary field_11196 Lnet/minecraft/class_2396;field_11196:Z
      named alwaysShow Lnet/minecraft/particle/ParticleType;alwaysShow:Z
    • parametersFactory

      private final ParticleEffect.Factory<T extends ParticleEffect> parametersFactory
      Mappings:
      Namespace Name Mixin selector
      official b Ljw;b:Ljv$a;
      intermediary field_11197 Lnet/minecraft/class_2396;field_11197:Lnet/minecraft/class_2394$class_2395;
      named parametersFactory Lnet/minecraft/particle/ParticleType;parametersFactory:Lnet/minecraft/particle/ParticleEffect$Factory;
  • Constructor Details

    • ParticleType

      protected ParticleType(boolean alwaysShow, ParticleEffect.Factory<T> parametersFactory)
      Parameters:
      alwaysShow - whether this particle type should appear regardless of particle mode
      Mappings:
      Namespace Name Mixin selector
      official <init> Ljw;<init>(ZLjv$a;)V
      intermediary <init> Lnet/minecraft/class_2396;<init>(ZLnet/minecraft/class_2394$class_2395;)V
      named <init> Lnet/minecraft/particle/ParticleType;<init>(ZLnet/minecraft/particle/ParticleEffect$Factory;)V
  • Method Details

    • shouldAlwaysSpawn

      public boolean shouldAlwaysSpawn()
      Mappings:
      Namespace Name Mixin selector
      official c Ljw;c()Z
      intermediary method_10299 Lnet/minecraft/class_2396;method_10299()Z
      named shouldAlwaysSpawn Lnet/minecraft/particle/ParticleType;shouldAlwaysSpawn()Z
    • getParametersFactory

      public ParticleEffect.Factory<T> getParametersFactory()
      Mappings:
      Namespace Name Mixin selector
      official d Ljw;d()Ljv$a;
      intermediary method_10298 Lnet/minecraft/class_2396;method_10298()Lnet/minecraft/class_2394$class_2395;
      named getParametersFactory Lnet/minecraft/particle/ParticleType;getParametersFactory()Lnet/minecraft/particle/ParticleEffect$Factory;
    • getCodec

      public abstract com.mojang.serialization.Codec<T> getCodec()
      Mappings:
      Namespace Name Mixin selector
      official e Ljw;e()Lcom/mojang/serialization/Codec;
      intermediary method_29138 Lnet/minecraft/class_2396;method_29138()Lcom/mojang/serialization/Codec;
      named getCodec Lnet/minecraft/particle/ParticleType;getCodec()Lcom/mojang/serialization/Codec;