Class PetsClientInitializer
java.lang.Object
com.jeff.pets.client.PetsClientInitializer
Another
initializer class. This class does a couple of things:
- Assigns renderers to the entities defined in PetsInitializer
- Bakes models into the layers
- Creates the keybind to open the config screen, by default p
Suppresses: Deprecation warnings, as EntityRenderers is marked as
deprecated. I will likely have to find a suitable replacement sometime, but for now,
suppressing the warnings will work.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic net.minecraft.client.KeyMapping -
Constructor Summary
ConstructorsConstructorDescriptionPetsClientInitializer(net.neoforged.bus.api.IEventBus bus) Misc rendering stuff -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprintAddons(net.neoforged.fml.event.lifecycle.FMLClientSetupEvent event)
-
Field Details
-
ADDONS
-
openConfigScreen
public static net.minecraft.client.KeyMapping openConfigScreen
-
-
Constructor Details
-
PetsClientInitializer
public PetsClientInitializer(net.neoforged.bus.api.IEventBus bus) Misc rendering stuff
-
-
Method Details
-
printAddons
public static void printAddons(net.neoforged.fml.event.lifecycle.FMLClientSetupEvent event)
-