Package net.minecraft.client.particle
Class ParticleManager
- java.lang.Object
-
- net.minecraft.client.particle.ParticleManager
-
- All Implemented Interfaces:
IFutureReloadListener
public class ParticleManager extends java.lang.Object implements IFutureReloadListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
ParticleManager.AnimatedSpriteImpl
static interface
ParticleManager.IParticleMetaFactory<T extends IParticleData>
-
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientWorld
level
private java.util.Map<IParticleRenderType,java.util.Queue<Particle>>
particles
private java.util.Queue<Particle>
particlesToAdd
private java.util.Map<ResourceLocation,IParticleFactory<?>>
providers
private java.util.Random
random
private static java.util.List<IParticleRenderType>
RENDER_ORDER
private java.util.Map<ResourceLocation,ParticleManager.AnimatedSpriteImpl>
spriteSets
private AtlasTexture
textureAtlas
private TextureManager
textureManager
private java.util.Queue<EmitterParticle>
trackingEmitters
-
Constructor Summary
Constructors Constructor Description ParticleManager(ClientWorld p_i232413_1_, TextureManager p_i232413_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
add(Particle p_78873_1_)
void
addBlockHitEffects(BlockPos pos, BlockRayTraceResult target)
void
close()
java.lang.String
countParticles()
void
crack(BlockPos p_180532_1_, Direction p_180532_2_)
Particle
createParticle(IParticleData p_199280_1_, double p_199280_2_, double p_199280_4_, double p_199280_6_, double p_199280_8_, double p_199280_10_, double p_199280_12_)
void
createTrackingEmitter(Entity p_199282_1_, IParticleData p_199282_2_)
void
createTrackingEmitter(Entity p_199281_1_, IParticleData p_199281_2_, int p_199281_3_)
void
destroy(BlockPos p_180533_1_, BlockState p_180533_2_)
private void
loadParticleDescription(IResourceManager p_215236_1_, ResourceLocation p_215236_2_, java.util.Map<ResourceLocation,java.util.List<ResourceLocation>> p_215236_3_)
private <T extends IParticleData>
ParticlemakeParticle(T p_199927_1_, double p_199927_2_, double p_199927_4_, double p_199927_6_, double p_199927_8_, double p_199927_10_, double p_199927_12_)
<T extends IParticleData>
voidregister(ParticleType<T> p_199283_1_, IParticleFactory<T> p_199283_2_)
<T extends IParticleData>
voidregister(ParticleType<T> p_215234_1_, ParticleManager.IParticleMetaFactory<T> p_215234_2_)
private void
registerProviders()
java.util.concurrent.CompletableFuture<java.lang.Void>
reload(IFutureReloadListener.IStage p_215226_1_, IResourceManager p_215226_2_, IProfiler p_215226_3_, IProfiler p_215226_4_, java.util.concurrent.Executor p_215226_5_, java.util.concurrent.Executor p_215226_6_)
void
render(MatrixStack p_228345_1_, IRenderTypeBuffer.Impl p_228345_2_, LightTexture p_228345_3_, ActiveRenderInfo p_228345_4_, float p_228345_5_)
Deprecated.Forge: userenderParticles(MatrixStack, IRenderTypeBuffer.Impl, LightTexture, ActiveRenderInfo, float, net.minecraft.client.renderer.culling.ClippingHelper)
with ClippingHelper as additional parametervoid
renderParticles(MatrixStack p_228345_1_, IRenderTypeBuffer.Impl p_228345_2_, LightTexture p_228345_3_, ActiveRenderInfo p_228345_4_, float p_228345_5_, ClippingHelper clippingHelper)
void
setLevel(ClientWorld p_78870_1_)
void
tick()
private void
tickParticle(Particle p_178923_1_)
private void
tickParticleList(java.util.Collection<Particle> p_187240_1_)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.resources.IFutureReloadListener
getName
-
-
-
-
Field Detail
-
RENDER_ORDER
private static final java.util.List<IParticleRenderType> RENDER_ORDER
-
level
protected ClientWorld level
-
particles
private final java.util.Map<IParticleRenderType,java.util.Queue<Particle>> particles
-
trackingEmitters
private final java.util.Queue<EmitterParticle> trackingEmitters
-
textureManager
private final TextureManager textureManager
-
random
private final java.util.Random random
-
providers
private final java.util.Map<ResourceLocation,IParticleFactory<?>> providers
-
particlesToAdd
private final java.util.Queue<Particle> particlesToAdd
-
spriteSets
private final java.util.Map<ResourceLocation,ParticleManager.AnimatedSpriteImpl> spriteSets
-
textureAtlas
private final AtlasTexture textureAtlas
-
-
Constructor Detail
-
ParticleManager
public ParticleManager(ClientWorld p_i232413_1_, TextureManager p_i232413_2_)
-
-
Method Detail
-
registerProviders
private void registerProviders()
-
register
public <T extends IParticleData> void register(ParticleType<T> p_199283_1_, IParticleFactory<T> p_199283_2_)
-
register
public <T extends IParticleData> void register(ParticleType<T> p_215234_1_, ParticleManager.IParticleMetaFactory<T> p_215234_2_)
-
reload
public java.util.concurrent.CompletableFuture<java.lang.Void> reload(IFutureReloadListener.IStage p_215226_1_, IResourceManager p_215226_2_, IProfiler p_215226_3_, IProfiler p_215226_4_, java.util.concurrent.Executor p_215226_5_, java.util.concurrent.Executor p_215226_6_)
- Specified by:
reload
in interfaceIFutureReloadListener
-
close
public void close()
-
loadParticleDescription
private void loadParticleDescription(IResourceManager p_215236_1_, ResourceLocation p_215236_2_, java.util.Map<ResourceLocation,java.util.List<ResourceLocation>> p_215236_3_)
-
createTrackingEmitter
public void createTrackingEmitter(Entity p_199282_1_, IParticleData p_199282_2_)
-
createTrackingEmitter
public void createTrackingEmitter(Entity p_199281_1_, IParticleData p_199281_2_, int p_199281_3_)
-
createParticle
@Nullable public Particle createParticle(IParticleData p_199280_1_, double p_199280_2_, double p_199280_4_, double p_199280_6_, double p_199280_8_, double p_199280_10_, double p_199280_12_)
-
makeParticle
@Nullable private <T extends IParticleData> Particle makeParticle(T p_199927_1_, double p_199927_2_, double p_199927_4_, double p_199927_6_, double p_199927_8_, double p_199927_10_, double p_199927_12_)
-
add
public void add(Particle p_78873_1_)
-
tick
public void tick()
-
tickParticleList
private void tickParticleList(java.util.Collection<Particle> p_187240_1_)
-
tickParticle
private void tickParticle(Particle p_178923_1_)
-
render
@Deprecated public void render(MatrixStack p_228345_1_, IRenderTypeBuffer.Impl p_228345_2_, LightTexture p_228345_3_, ActiveRenderInfo p_228345_4_, float p_228345_5_)
Deprecated.Forge: userenderParticles(MatrixStack, IRenderTypeBuffer.Impl, LightTexture, ActiveRenderInfo, float, net.minecraft.client.renderer.culling.ClippingHelper)
with ClippingHelper as additional parameter
-
renderParticles
public void renderParticles(MatrixStack p_228345_1_, IRenderTypeBuffer.Impl p_228345_2_, LightTexture p_228345_3_, ActiveRenderInfo p_228345_4_, float p_228345_5_, @Nullable ClippingHelper clippingHelper)
-
setLevel
public void setLevel(@Nullable ClientWorld p_78870_1_)
-
destroy
public void destroy(BlockPos p_180533_1_, BlockState p_180533_2_)
-
countParticles
public java.lang.String countParticles()
-
addBlockHitEffects
public void addBlockHitEffects(BlockPos pos, BlockRayTraceResult target)
-
-