Class ParticleRendererRegistry
ParticleGroups.-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.resources.IdentifiergetId(net.minecraft.client.particle.ParticleRenderType textureSheet) Gets the identifier for the givenParticleRenderType.static @Nullable net.minecraft.client.particle.ParticleRenderTypegetParticleTextureSheet(net.minecraft.resources.Identifier id) Gets theParticleRenderTyperegistered with the given identifier.static voidregister(net.minecraft.client.particle.ParticleRenderType textureSheet, Function<net.minecraft.client.particle.ParticleEngine, net.minecraft.client.particle.ParticleGroup<?>> function) Registers aParticleGroupfactory for the givenParticleRenderType.static voidregisterOrdering(net.minecraft.client.particle.ParticleRenderType first, net.minecraft.client.particle.ParticleRenderType second) Registers a rendering order between twoParticleRenderTypes.static voidregisterOrdering(net.minecraft.client.particle.ParticleRenderType first, net.minecraft.resources.Identifier second) Registers a rendering order between twoParticleRenderTypes.static voidregisterOrdering(net.minecraft.resources.Identifier first, net.minecraft.client.particle.ParticleRenderType second) Registers a rendering order between twoParticleRenderTypes.static voidregisterOrdering(net.minecraft.resources.Identifier first, net.minecraft.resources.Identifier second) Registers a rendering order between twoParticleRenderTypes.
-
Method Details
-
register
public static void register(net.minecraft.client.particle.ParticleRenderType textureSheet, Function<net.minecraft.client.particle.ParticleEngine, net.minecraft.client.particle.ParticleGroup<?>> function) Registers aParticleGroupfactory for the givenParticleRenderType.- Parameters:
textureSheet- the texture sheetfunction- the factory function
-
registerOrdering
public static void registerOrdering(net.minecraft.client.particle.ParticleRenderType first, net.minecraft.resources.Identifier second) Registers a rendering order between twoParticleRenderTypes.The first texture sheet will be rendered before the second texture sheet.
Note that the rendering order of vanilla texture sheets is already defined by Minecraft, and you cannot change the order of vanilla texture sheets with this method.
- Parameters:
first- the texture sheet to render firstsecond- the texture sheet to render second
-
registerOrdering
public static void registerOrdering(net.minecraft.client.particle.ParticleRenderType first, net.minecraft.client.particle.ParticleRenderType second) Registers a rendering order between twoParticleRenderTypes.The first texture sheet will be rendered before the second texture sheet.
Note that the rendering order of vanilla texture sheets is already defined by Minecraft, and you cannot change the order of vanilla texture sheets with this method.
- Parameters:
first- the texture sheet to render firstsecond- the texture sheet to render second
-
registerOrdering
public static void registerOrdering(net.minecraft.resources.Identifier first, net.minecraft.client.particle.ParticleRenderType second) Registers a rendering order between twoParticleRenderTypes.The first texture sheet will be rendered before the second texture sheet.
Note that the rendering order of vanilla texture sheets is already defined by Minecraft, and you cannot change the order of vanilla texture sheets with this method.
- Parameters:
first- the texture sheet to render firstsecond- the texture sheet to render second
-
registerOrdering
public static void registerOrdering(net.minecraft.resources.Identifier first, net.minecraft.resources.Identifier second) Registers a rendering order between twoParticleRenderTypes.The first texture sheet will be rendered before the second texture sheet.
Note that the rendering order of vanilla texture sheets is already defined by Minecraft, and you cannot change the order of vanilla texture sheets with this method.
- Parameters:
first- the texture sheet to render firstsecond- the texture sheet to render second
-
getParticleTextureSheet
public static @Nullable net.minecraft.client.particle.ParticleRenderType getParticleTextureSheet(net.minecraft.resources.Identifier id) Gets theParticleRenderTyperegistered with the given identifier.- Parameters:
id- the identifier of the texture sheet- Returns:
- the texture sheet, or null if none is registered with the given identifier
-
getId
public static net.minecraft.resources.Identifier getId(net.minecraft.client.particle.ParticleRenderType textureSheet) Gets the identifier for the givenParticleRenderType.- Parameters:
textureSheet- the texture sheet- Returns:
- the identifier
-