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 hk
intermediary net/minecraft/class_2396
named net/minecraft/particle/ParticleType
-
Field Summary
Fields Modifier and Type Field Description private boolean
alwaysShow
private ParticleEffect.Factory<T>
parametersFactory
-
Constructor Summary
Constructors Modifier Constructor Description protected
ParticleType(boolean alwaysShow, ParticleEffect.Factory<T> parametersFactory)
-
Method Summary
Modifier and Type Method Description abstract com.mojang.serialization.Codec<T>
getCodec()
ParticleEffect.Factory<T>
getParametersFactory()
boolean
shouldAlwaysSpawn()
-
Field Details
-
alwaysShow
private final boolean alwaysShow- Mappings:
Namespace Name Mixin selector official a
Lhk;a:Z
intermediary field_11196
Lnet/minecraft/class_2396;field_11196:Z
named alwaysShow
Lnet/minecraft/particle/ParticleType;alwaysShow:Z
-
parametersFactory
- Mappings:
Namespace Name Mixin selector official b
Lhk;b:Lhj$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
- Parameters:
alwaysShow
- whether this particle type should appear regardless of particle mode- Mappings:
Namespace Name Mixin selector official <init>
Lhk;<init>(ZLhj$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
- Mappings:
Namespace Name Mixin selector official c
Lhk;c()Z
intermediary method_10299
Lnet/minecraft/class_2396;method_10299()Z
named shouldAlwaysSpawn
Lnet/minecraft/particle/ParticleType;shouldAlwaysSpawn()Z
-
getParametersFactory
- Mappings:
Namespace Name Mixin selector official d
Lhk;d()Lhj$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
- Mappings:
Namespace Name Mixin selector official e
Lhk;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;
-