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<FireworkRocketItem.Shape,
FireworkShapeFactoryRegistry.Factory> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable FireworkShapeFactoryRegistry.Factory
get
(FireworkRocketItem.Shape shape) static void
register
(FireworkRocketItem.Shape shape, FireworkShapeFactoryRegistry.Factory factory)
-
Field Details
-
factories
-
-
Constructor Details
-
FireworkShapeFactoryRegistry
public FireworkShapeFactoryRegistry()
-
-
Method Details
-
register
public static void register(FireworkRocketItem.Shape shape, FireworkShapeFactoryRegistry.Factory factory) -
get
@Nullable public static @Nullable FireworkShapeFactoryRegistry.Factory get(FireworkRocketItem.Shape shape)
-