Class ParticleGroupRegistry
ParticleGroups.-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.resources.IdentifiergetId(net.minecraft.client.particle.ParticleRenderType renderType) Gets the identifier for the givenParticleRenderType.static @Nullable net.minecraft.client.particle.ParticleRenderTypegetParticleRenderType(net.minecraft.resources.Identifier id) Gets theParticleRenderTyperegistered with the given identifier.static voidregister(net.minecraft.client.particle.ParticleRenderType renderType, 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 renderType, Function<net.minecraft.client.particle.ParticleEngine, net.minecraft.client.particle.ParticleGroup<?>> function) Registers aParticleGroupfactory for the givenParticleRenderType.- Parameters:
renderType- the render typefunction- 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 render type will be rendered before the second render type.
Note that the rendering order of vanilla render types is already defined by Minecraft, and you cannot change the order of vanilla render types with this method.
- Parameters:
first- the render type to render firstsecond- the render type 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 render type will be rendered before the second render type.
Note that the rendering order of vanilla render types is already defined by Minecraft, and you cannot change the order of vanilla render types with this method.
- Parameters:
first- the render type to render firstsecond- the render type 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 render type will be rendered before the second render type.
Note that the rendering order of vanilla render types is already defined by Minecraft, and you cannot change the order of vanilla render types with this method.
- Parameters:
first- the render type to render firstsecond- the render type 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 render type will be rendered before the second render type.
Note that the rendering order of vanilla render types is already defined by Minecraft, and you cannot change the order of vanilla render types with this method.
- Parameters:
first- the render type to render firstsecond- the render type to render second
-
getParticleRenderType
public static @Nullable net.minecraft.client.particle.ParticleRenderType getParticleRenderType(net.minecraft.resources.Identifier id) Gets theParticleRenderTyperegistered with the given identifier.- Parameters:
id- the identifier of the render type- Returns:
- the render type, or null if none is registered with the given identifier
-
getId
public static net.minecraft.resources.Identifier getId(net.minecraft.client.particle.ParticleRenderType renderType) Gets the identifier for the givenParticleRenderType.- Parameters:
renderType- the render type- Returns:
- the identifier
-