Skip to content

Commit

Permalink
Fix using previously deprecated for removal methods
Browse files Browse the repository at this point in the history
  • Loading branch information
pupnewfster committed Dec 11, 2023
1 parent 8e21493 commit b282c9b
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
package net.neoforged.neoforge.client;

import net.minecraft.client.renderer.RenderType;
import net.minecraft.resources.ResourceLocation;
import net.neoforged.api.distmarker.Dist;
import net.neoforged.bus.api.SubscribeEvent;
import net.neoforged.fml.common.Mod;
Expand All @@ -24,13 +25,13 @@
public class ClientNeoForgeMod {
@SubscribeEvent
public static void onRegisterGeometryLoaders(ModelEvent.RegisterGeometryLoaders event) {
event.register("empty", EmptyModel.LOADER);
event.register("elements", ElementsModel.Loader.INSTANCE);
event.register("obj", ObjLoader.INSTANCE);
event.register("fluid_container", DynamicFluidContainerModel.Loader.INSTANCE);
event.register("composite", CompositeModel.Loader.INSTANCE);
event.register("item_layers", ItemLayerModel.Loader.INSTANCE);
event.register("separate_transforms", SeparateTransformsModel.Loader.INSTANCE);
event.register(new ResourceLocation("neoforge", "empty"), EmptyModel.LOADER);
event.register(new ResourceLocation("neoforge", "elements"), ElementsModel.Loader.INSTANCE);
event.register(new ResourceLocation("neoforge", "obj"), ObjLoader.INSTANCE);
event.register(new ResourceLocation("neoforge", "fluid_container"), DynamicFluidContainerModel.Loader.INSTANCE);
event.register(new ResourceLocation("neoforge", "composite"), CompositeModel.Loader.INSTANCE);
event.register(new ResourceLocation("neoforge", "item_layers"), ItemLayerModel.Loader.INSTANCE);
event.register(new ResourceLocation("neoforge", "separate_transforms"), SeparateTransformsModel.Loader.INSTANCE);
}

@SubscribeEvent
Expand All @@ -40,6 +41,6 @@ public static void onRegisterReloadListeners(RegisterClientReloadListenersEvent

@SubscribeEvent
public static void onRegisterNamedRenderTypes(RegisterNamedRenderTypesEvent event) {
event.register("item_unlit", RenderType.translucent(), NeoForgeRenderTypes.ITEM_UNSORTED_UNLIT_TRANSLUCENT.get());
event.register(new ResourceLocation("neoforge", "item_unlit"), RenderType.translucent(), NeoForgeRenderTypes.ITEM_UNSORTED_UNLIT_TRANSLUCENT.get());
}
}

0 comments on commit b282c9b

Please sign in to comment.