Package net.minecraft.particle
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 hkintermediary net/minecraft/class_2396named net/minecraft/particle/ParticleType
-
Field Summary
Fields Modifier and Type Field Description private booleanalwaysShowprivate ParticleEffect.Factory<T>parametersFactory -
Constructor Summary
Constructors Modifier Constructor Description protectedParticleType(boolean alwaysShow, ParticleEffect.Factory<T> parametersFactory) -
Method Summary
Modifier and Type Method Description abstract com.mojang.serialization.Codec<T>getCodec()ParticleEffect.Factory<T>getParametersFactory()booleanshouldAlwaysSpawn()
-
Field Details
-
alwaysShow
private final boolean alwaysShow- Mappings:
Namespace Name Mixin selector official aLhk;a:Zintermediary field_11196Lnet/minecraft/class_2396;field_11196:Znamed alwaysShowLnet/minecraft/particle/ParticleType;alwaysShow:Z
-
parametersFactory
- Mappings:
Namespace Name Mixin selector official bLhk;b:Lhj$a;intermediary field_11197Lnet/minecraft/class_2396;field_11197:Lnet/minecraft/class_2394$class_2395;named parametersFactoryLnet/minecraft/particle/ParticleType;parametersFactory:Lnet/minecraft/particle/ParticleEffect$Factory;
-
-
Constructor Details
-
ParticleType
- Parameters:
alwaysShow- whether this particle type should appear regardless of particle mode- Mappings:
Namespace Name Mixin selector official <init>Lhk;<init>(ZLhj$a;)Vintermediary <init>Lnet/minecraft/class_2396;<init>(ZLnet/minecraft/class_2394$class_2395;)Vnamed <init>Lnet/minecraft/particle/ParticleType;<init>(ZLnet/minecraft/particle/ParticleEffect$Factory;)V
-
-
Method Details
-
shouldAlwaysSpawn
- Mappings:
Namespace Name Mixin selector official cLhk;c()Zintermediary method_10299Lnet/minecraft/class_2396;method_10299()Znamed shouldAlwaysSpawnLnet/minecraft/particle/ParticleType;shouldAlwaysSpawn()Z
-
getParametersFactory
- Mappings:
Namespace Name Mixin selector official dLhk;d()Lhj$a;intermediary method_10298Lnet/minecraft/class_2396;method_10298()Lnet/minecraft/class_2394$class_2395;named getParametersFactoryLnet/minecraft/particle/ParticleType;getParametersFactory()Lnet/minecraft/particle/ParticleEffect$Factory;
-
getCodec
- Mappings:
Namespace Name Mixin selector official eLhk;e()Lcom/mojang/serialization/Codec;intermediary method_29138Lnet/minecraft/class_2396;method_29138()Lcom/mojang/serialization/Codec;named getCodecLnet/minecraft/particle/ParticleType;getCodec()Lcom/mojang/serialization/Codec;
-