From f36e03c9c869e8e2c2372a8eeabf1ead49b794ce Mon Sep 17 00:00:00 2001 From: 90 <90@national.shitposting.agency> Date: Sun, 20 Nov 2022 13:23:37 +0000 Subject: [PATCH] Add access widener for `ItemModelGenerator#writer` (#2635) Allows for the use of custom Models and TextureMaps for generating item models. (cherry picked from commit ad31814d3c43234f88f0f2d59ce32da2a8abd051) --- .../main/resources/fabric-data-generation-api-v1.accesswidener | 2 ++ fabric-data-generation-api-v1/template.accesswidener | 2 ++ 2 files changed, 4 insertions(+) diff --git a/fabric-data-generation-api-v1/src/main/resources/fabric-data-generation-api-v1.accesswidener b/fabric-data-generation-api-v1/src/main/resources/fabric-data-generation-api-v1.accesswidener index c30ba54ce..cc1a28d4b 100644 --- a/fabric-data-generation-api-v1/src/main/resources/fabric-data-generation-api-v1.accesswidener +++ b/fabric-data-generation-api-v1/src/main/resources/fabric-data-generation-api-v1.accesswidener @@ -30,6 +30,8 @@ transitive-accessible method net/minecraft/data/family/BlockFamilies register transitive-accessible field net/minecraft/data/client/BlockStateModelGenerator blockStateCollector Ljava/util/function/Consumer; transitive-accessible field net/minecraft/data/client/BlockStateModelGenerator modelCollector Ljava/util/function/BiConsumer; +transitive-accessible field net/minecraft/data/client/ItemModelGenerator writer Ljava/util/function/BiConsumer; + transitive-accessible method net/minecraft/data/client/TextureKey of (Ljava/lang/String;)Lnet/minecraft/data/client/TextureKey; transitive-accessible method net/minecraft/data/client/TextureKey of (Ljava/lang/String;Lnet/minecraft/data/client/TextureKey;)Lnet/minecraft/data/client/TextureKey; diff --git a/fabric-data-generation-api-v1/template.accesswidener b/fabric-data-generation-api-v1/template.accesswidener index b2d9b9489..d92672f48 100644 --- a/fabric-data-generation-api-v1/template.accesswidener +++ b/fabric-data-generation-api-v1/template.accesswidener @@ -30,6 +30,8 @@ transitive-accessible method net/minecraft/data/family/BlockFamilies register transitive-accessible field net/minecraft/data/client/BlockStateModelGenerator blockStateCollector Ljava/util/function/Consumer; transitive-accessible field net/minecraft/data/client/BlockStateModelGenerator modelCollector Ljava/util/function/BiConsumer; +transitive-accessible field net/minecraft/data/client/ItemModelGenerator writer Ljava/util/function/BiConsumer; + transitive-accessible method net/minecraft/data/client/TextureKey of (Ljava/lang/String;)Lnet/minecraft/data/client/TextureKey; transitive-accessible method net/minecraft/data/client/TextureKey of (Ljava/lang/String;Lnet/minecraft/data/client/TextureKey;)Lnet/minecraft/data/client/TextureKey;