Package net.minecraftforge.client
Class FireworkShapeFactoryRegistry
java.lang.Object
net.minecraftforge.client.FireworkShapeFactoryRegistry
Keeps track of custom firework shape types, because Particle is client side only this can't be on the Shape itself.
So sometime during your client initalization call register.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map
<FireworkExplosion.Shape, FireworkShapeFactoryRegistry.Factory> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable FireworkShapeFactoryRegistry.Factory
get
(FireworkExplosion.Shape shape) static void
register
(FireworkExplosion.Shape shape, FireworkShapeFactoryRegistry.Factory factory)
-
Field Details
-
factories
-
-
Constructor Details
-
FireworkShapeFactoryRegistry
public FireworkShapeFactoryRegistry()
-
-
Method Details
-
register
public static void register(FireworkExplosion.Shape shape, FireworkShapeFactoryRegistry.Factory factory) -
get
@Nullable public static @Nullable FireworkShapeFactoryRegistry.Factory get(FireworkExplosion.Shape shape)
-