Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix net.fabricmc.fabric.api.client.renderegistry.v1.BlockEntityRenderRegistry being deprecated #46

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ java {
}

jar {
doFirst {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
from("LICENSE") {
rename { "${it}_${project.base.archivesName.get()}"}
}
Expand Down
7 changes: 3 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ org.gradle.parallel=true
# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.20.1
loader_version=0.14.24
yarn_mappings=1.20.1+build.10
loader_version=0.16.9

# Mod Properties
mod_version=1.0.2-fabric
mod_version=1.0.3-fabric-hotfix
maven_group=com.ninni.dye_depot
archives_base_name=dye_depot

# Dependencies
fabric_version=0.90.4+1.20.1
fabric_version=0.92.2+1.20.1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import net.fabricmc.api.Environment;
import net.fabricmc.fabric.api.blockrenderlayer.v1.BlockRenderLayerMap;
import net.fabricmc.fabric.api.client.particle.v1.ParticleFactoryRegistry;
import net.fabricmc.fabric.api.client.rendereregistry.v1.BlockEntityRendererRegistry;
import net.fabricmc.fabric.api.client.rendering.v1.BlockEntityRendererRegistry;
import net.fabricmc.fabric.api.loot.v2.LootTableEvents;
import net.fabricmc.fabric.api.object.builder.v1.trade.TradeOfferHelper;
import net.fabricmc.fabric.api.resource.ResourceManagerHelper;
Expand Down Expand Up @@ -228,9 +228,9 @@ public static void clientInit() {

//client methods
private static void registerModelLayers() {
BlockEntityRendererRegistry.INSTANCE.register(DDBlockEntityType.SHULKER_BOX, DDShulkerBoxRenderer::new);
BlockEntityRendererRegistry.INSTANCE.register(DDBlockEntityType.BED, DDBedRenderer::new);
BlockEntityRendererRegistry.INSTANCE.register(DDBlockEntityType.BANNER, DDBannerRenderer::new);
BlockEntityRendererRegistry.register(DDBlockEntityType.SHULKER_BOX, DDShulkerBoxRenderer::new);
BlockEntityRendererRegistry.register(DDBlockEntityType.BED, DDBedRenderer::new);
BlockEntityRendererRegistry.register(DDBlockEntityType.BANNER, DDBannerRenderer::new);
}

private static void registerParticles() {
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"id": "dye_depot",
"version": "1.0.2-fabric",
"version": "1.0.3-fabric-hotfix",
"name": "Dye Depot",
"description": "Enhances your Minecraft experience with 16 vibrant new dyes and various other tweaks",
"authors": [
Expand Down Expand Up @@ -29,9 +29,9 @@
"dye_depot.mixins.json"
],
"depends": {
"fabricloader": ">=0.14.24",
"fabricloader": ">=0.16.9",
"fabric-api": "*",
"minecraft": "~1.20",
"minecraft": "~1.20.1",
"java": ">=17"
},
"suggests": {
Expand Down