Class ParticleRendererRegistry
ParticleRenderers.-
Method Summary
Modifier and TypeMethodDescriptionstatic IdentifiergetId(ParticleTextureSheet textureSheet) Gets the identifier for the givenParticleTextureSheet.static @Nullable ParticleTextureSheetGets theParticleTextureSheetregistered with the given identifier.static voidregister(ParticleTextureSheet textureSheet, Function<ParticleManager, ParticleRenderer<?>> function) Registers aParticleRendererfactory for the givenParticleTextureSheet.static voidregisterOrdering(ParticleTextureSheet first, ParticleTextureSheet second) Registers a rendering order between twoParticleTextureSheets.static voidregisterOrdering(ParticleTextureSheet first, Identifier second) Registers a rendering order between twoParticleTextureSheets.static voidregisterOrdering(Identifier first, ParticleTextureSheet second) Registers a rendering order between twoParticleTextureSheets.static voidregisterOrdering(Identifier first, Identifier second) Registers a rendering order between twoParticleTextureSheets.
-
Method Details
-
register
public static void register(ParticleTextureSheet textureSheet, Function<ParticleManager, ParticleRenderer<?>> function) Registers aParticleRendererfactory for the givenParticleTextureSheet.- Parameters:
textureSheet- the texture sheetfunction- the factory function
-
registerOrdering
Registers a rendering order between twoParticleTextureSheets.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
Registers a rendering order between twoParticleTextureSheets.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
Registers a rendering order between twoParticleTextureSheets.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
Registers a rendering order between twoParticleTextureSheets.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
Gets theParticleTextureSheetregistered 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
Gets the identifier for the givenParticleTextureSheet.- Parameters:
textureSheet- the texture sheet- Returns:
- the identifier
-