Skip to content

Commit

Permalink
updated NeoForge to 21.0.102-beta for better model registering
Browse files Browse the repository at this point in the history
  • Loading branch information
cech12 committed Jul 18, 2024
1 parent fcc50a9 commit 0174fdb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 28 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Forge Recommended Versioning](https://mcforge.readthedocs.io/en/latest/conventions/versioning/).

## [1.21-6.4.0.0] - 2024-07-18
### Changed
- updated NeoForge to 21.0.102-beta for better model registering

### Fixed
- the recipe of Postman Hat contained a wrong lapis item tag (Fabric/Quilt & Neoforge) (thanks to WhitePhant0m for the report) #66

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ forge_version_range=[51.0.18,)
forge_loader_version_range=[50,)

# NeoForge
neoforge_version=21.0.94-beta
neoforge_version_range=[21.0.94-beta,)
neoforge_version=21.0.102-beta
neoforge_version_range=[21.0.102-beta,)
neoforge_loader_version_range=[2,)

# Baubles 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import net.neoforged.fml.event.lifecycle.FMLClientSetupEvent;
import net.neoforged.neoforge.client.event.EntityRenderersEvent;
import net.neoforged.neoforge.client.event.RegisterColorHandlersEvent;
import net.neoforged.neoforge.client.extensions.common.RegisterClientExtensionsEvent;

@SuppressWarnings("unused")
@EventBusSubscriber(modid = Constants.MOD_ID, value = Dist.CLIENT, bus = EventBusSubscriber.Bus.MOD)
Expand All @@ -27,6 +28,11 @@ public class UsefulHatsNeoForgeClientEvents {

public static UsefulHatModel<LivingEntity> usefulHatModel = null;

@SubscribeEvent
public static void registerItemExtensions(RegisterClientExtensionsEvent event) {
event.registerItem(UsefulHatItemExtension.INSTANCE, Services.REGISTRY.getAllHatItems().toArray(new Item[0]));
}

@SubscribeEvent
public static void registerLayers(EntityRenderersEvent.RegisterLayerDefinitions event) {
event.registerLayerDefinition(USEFUL_HAT_LAYER, () -> UsefulHatModel.createLayer(LayerDefinitions.INNER_ARMOR_DEFORMATION, 0));
Expand Down
25 changes: 0 additions & 25 deletions neoforge/src/main/java/de/cech12/usefulhats/mixin/ItemMixin.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"compatibilityLevel": "JAVA_17",
"refmap": "${mod_id}.refmap.json",
"mixins": [
"ItemMixin"
],
"client": [
"HumanoidArmorLayerMixin"
Expand Down

0 comments on commit 0174fdb

Please sign in to comment.