Package net.minecraft.client.particle
Class ParticleManager
java.lang.Object
net.minecraft.client.particle.ParticleManager
- All Implemented Interfaces:
IFutureReloadListener
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
static interface
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
Field Summary
Modifier and TypeFieldDescriptionprotected ClientWorld
private final Map<IParticleRenderType,
Queue<Particle>> private final Map<ResourceLocation,
IParticleFactory<?>> private final Random
private static final List<IParticleRenderType>
private final Map<ResourceLocation,
ParticleManager.AnimatedSpriteImpl> private final AtlasTexture
private final TextureManager
private final Queue<EmitterParticle>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addBlockHitEffects
(BlockPos pos, BlockRayTraceResult target) void
close()
void
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_, Map<ResourceLocation, 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
reload
(IFutureReloadListener.IStage p_215226_1_, IResourceManager p_215226_2_, IProfiler p_215226_3_, IProfiler p_215226_4_, Executor p_215226_5_, 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.void
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
(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 Details
-
RENDER_ORDER
-
level
-
particles
-
trackingEmitters
-
textureManager
-
random
-
providers
-
particlesToAdd
-
spriteSets
-
textureAtlas
-
-
Constructor Details
-
ParticleManager
-
-
Method Details
-
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 CompletableFuture<Void> reload(IFutureReloadListener.IStage p_215226_1_, IResourceManager p_215226_2_, IProfiler p_215226_3_, IProfiler p_215226_4_, Executor p_215226_5_, 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_, Map<ResourceLocation, List<ResourceLocation>> p_215236_3_) -
createTrackingEmitter
-
createTrackingEmitter
-
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
-
tick
public void tick() -
tickParticleList
-
tickParticle
-
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
-
destroy
-
crack
-
countParticles
-
addBlockHitEffects
-
renderParticles(MatrixStack, IRenderTypeBuffer.Impl, LightTexture, ActiveRenderInfo, float, net.minecraft.client.renderer.culling.ClippingHelper)
with ClippingHelper as additional parameter