Package net.minecraft.client.particle
Class ParticleManager
java.lang.Object
net.minecraft.client.particle.ParticleManager
- All Implemented Interfaces:
IFutureReloadListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classstatic interfaceNested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ClientWorldprivate final Map<IParticleRenderType,Queue<Particle>> private final Map<ResourceLocation,IParticleFactory<?>> private final Randomprivate static final List<IParticleRenderType>private final Map<ResourceLocation,ParticleManager.AnimatedSpriteImpl> private final AtlasTextureprivate final TextureManagerprivate final Queue<EmitterParticle> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddBlockHitEffects(BlockPos pos, BlockRayTraceResult target) voidclose()voidcreateParticle(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_) voidcreateTrackingEmitter(Entity p_199282_1_, IParticleData p_199282_2_) voidcreateTrackingEmitter(Entity p_199281_1_, IParticleData p_199281_2_, int p_199281_3_) voiddestroy(BlockPos p_180533_1_, BlockState p_180533_2_) private voidloadParticleDescription(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 voidreload(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_) voidrender(MatrixStack p_228345_1_, IRenderTypeBuffer.Impl p_228345_2_, LightTexture p_228345_3_, ActiveRenderInfo p_228345_4_, float p_228345_5_) Deprecated.voidrenderParticles(MatrixStack p_228345_1_, IRenderTypeBuffer.Impl p_228345_2_, LightTexture p_228345_3_, ActiveRenderInfo p_228345_4_, float p_228345_5_, ClippingHelper clippingHelper) voidsetLevel(ClientWorld p_78870_1_) voidtick()private voidtickParticle(Particle p_178923_1_) private voidtickParticleList(Collection<Particle> p_187240_1_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
reloadin 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