From a260981d3436e96d01e90735ccbf055aae88610f Mon Sep 17 00:00:00 2001 From: ix0rai Date: Fri, 16 Jun 2023 17:26:46 -0500 Subject: [PATCH] port to 1.20 --- build.gradle | 6 ++--- gradle.properties | 16 ++++++------ gradle/wrapper/gradle-wrapper.jar | Bin 61608 -> 62076 bytes gradle/wrapper/gradle-wrapper.properties | 2 +- gradlew | 7 +++--- .../block/entity/BerryHarvesterScreen.java | 15 ++++++------ .../block/entity/BodaciousScreen.java | 8 +++--- .../block/entity/JuicerScreen.java | 23 +++++++++--------- .../compat/JuicerEmiRecipe.java | 13 ++++------ .../config/BodaciousConfigScreen.java | 6 ++--- .../mixin/VineDecoratorRedirect.java | 2 +- .../registry/BodaciousBlocks.java | 9 ++++--- .../registry/BodaciousBushes.java | 3 +-- src/main/resources/fabric.mod.json | 9 +++---- 14 files changed, 57 insertions(+), 62 deletions(-) diff --git a/build.gradle b/build.gradle index ed8188e5..5910d829 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ plugins { - id "fabric-loom" version "1.1.10" - id "io.github.juuxel.loom-quiltflower" version "1.7.3" + id "fabric-loom" version "1.2.4" + id "io.github.juuxel.loom-quiltflower" version "1.10.0" id "com.github.johnrengelman.shadow" version "7.1.2" id "java-library" id "maven-publish" @@ -34,7 +34,7 @@ dependencies { modImplementation("net.fabricmc:fabric-loader:${project.loader_version}") // emi - recipe viewer - modImplementation("dev.emi:emi:${emi_version}") { transitive = false } + modImplementation("dev.emi:emi-fabric:${emi_version}") { transitive = false } // dependencies for config shadow("com.electronwill.night-config:core:${project.night_config_version}") diff --git a/gradle.properties b/gradle.properties index a01367fe..08ffef3a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,21 +3,21 @@ org.gradle.jvmargs=-Xmx1G # fabric properties # check these on https://fabricmc.net/versions.html -minecraft_version=1.19.4 -quilt_mappings=3 -loader_version=0.14.14 +minecraft_version=1.20.1 +quilt_mappings=1 +loader_version=0.14.21 # mod properties java_version = 17 -mod_version = 2.1.1+mc1.19.4 +mod_version = 2.1.1+mc1.20.1 maven_group = io.ix0rai.bodacious_berries archives_base_name = bodacious_berries # mod dependencies -fabric_api_version=0.76.0+1.19.4 -emi_version=0.7.0+1.19.3 -spruceui_version=4.2.0+1.19.4 -mod_menu_version=6.1.0-rc.1 +fabric_api_version=0.83.1+1.20.1 +emi_version=1.0.3+1.20 +spruceui_version=5.0.0+1.20 +mod_menu_version=7.0.0 # other dependencies night_config_version=3.6.6 \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index ccebba7710deaf9f98673a68957ea02138b60d0a..c1962a79e29d3e0ab67b14947c167a862655af9b 100644 GIT binary patch delta 8979 zcmY*fV{{$d(moANW81db*tXT!Nn`UgX2ZtD$%&n`v2C-lt;YD?@2-14?EPcUv!0n* z`^Ws4HP4i8L%;4p*JkD-J9ja2aKi!sX@~#-MY5?EPBK~fXAl)Ti}^QGH@6h+V+|}F zv=1RqQxhWW9!hTvYE!)+*m%jEL^9caK;am9X8QP~a9X0N6(=WSX8KF#WpU-6TjyR3 zpKhscivP97d$DGc{KI(f#g07u{Jr0wn#+qNr}yW}2N3{Kx0lCq%p4LBKil*QDTEyR zg{{&=GAy_O0VJ(8ZbtS4tPeeeILKK(M?HtQY!6K^wt zxsPH>E%g%V@=!B;kWF54$xjC&4hO!ZEG0QFMHLqe!tgH;%vO62BQj||nokbX&2kxF zzg#N!2M|NxFL#YdwOL8}>iDLr%2=!LZvk_&`AMrm7Zm%#_{Ot_qw=HkdVg{f9hYHF zlRF*9kxo~FPfyBD!^d6MbD?BRZj(4u9j!5}HFUt+$#Jd48Fd~ahe@)R9Z2M1t%LHa z_IP|tDb0CDl(fsEbvIYawJLJ7hXfpVw)D-)R-mHdyn5uZYefN0rZ-#KDzb`gsow;v zGX>k|g5?D%Vn_}IJIgf%nAz{@j0FCIEVWffc1Z+lliA}L+WJY=MAf$GeI7xw5YD1) z;BJn$T;JI5vTbZ&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F42Xmg_pZnEnvC%avz=xNs!=6b%%JSuc(WObezkCeZ#C|3PpXj zkR8hDPyTIUv~?<%*)6=8`WfPPyB9goi+p$1N2N<%!tS2wopT2x`2IZi?|_P{GA|I5 z?7DP*?Gi#2SJZ!x#W9Npm)T;=;~Swyeb*!P{I^s@o5m_3GS2Lg?VUeBdOeae7&s5$ zSL_VuTJih_fq7g8O8b0g+GbmE+xG}^Wx`g~{mWTyr@=h zKlAymoHeZa`DgR?Pj8Yc+I|MrSB>X*ts#wNFOJxs!3aGE)xeTHlF`fC5^g(DTacl$ zx!ezQJdwIyc$8RyNS~Wh{0pp>8NcW)*J=7AQYdT?(QhJuq4u`QniZ!%6l{KWp-0Xp z4ZC6(E(_&c$$U_cmGFslsyX6(62~m*z8Yx2p+F5xmD%6A7eOnx`1lJA-Mrc#&xZWJ zzXV{{OIgzYaq|D4k^j%z|8JB8GnRu3hw#8Z@({sSmsF(x>!w0Meg5y(zg!Z0S^0k# z5x^g1@L;toCK$NB|Fn 0) { - drawTexture(matrices, x + 73, y + 35, dubious ? DUBIOUS_PROGRESS_BAR_UV_X : PROGRESS_BAR_UV_X, blend ? BLEND_PROGRESS_BAR_UV_Y : PROGRESS_BAR_UV_Y, 28, progress); + graphics.drawTexture(TEXTURE, x + 73, y + 35, dubious ? DUBIOUS_PROGRESS_BAR_UV_X : PROGRESS_BAR_UV_X, blend ? BLEND_PROGRESS_BAR_UV_Y : PROGRESS_BAR_UV_Y, 28, progress); } // draw bubbles progress = BUBBLE_PROGRESS[brewTime / 2 % 7]; if (progress > 0) { for (int i = 0; i < 2; i++) { - drawTexture(matrices, x + (i == 0 ? LEFT_BUBBLE_X : RIGHT_BUBBLE_X), y + 63 - progress, dubious ? DUBIOUS_BUBBLE_UV_X : BUBBLE_UV_X, (blend ? BLEND_BUBBLE_UV_Y : BUBBLE_UV_Y) - progress, 12, progress); + graphics.drawTexture(TEXTURE, x + (i == 0 ? LEFT_BUBBLE_X : RIGHT_BUBBLE_X), y + 63 - progress, dubious ? DUBIOUS_BUBBLE_UV_X : BUBBLE_UV_X, (blend ? BLEND_BUBBLE_UV_Y : BUBBLE_UV_Y) - progress, 12, progress); } } } diff --git a/src/main/java/io/ix0rai/bodacious_berries/compat/JuicerEmiRecipe.java b/src/main/java/io/ix0rai/bodacious_berries/compat/JuicerEmiRecipe.java index 218c38a5..b4263c91 100644 --- a/src/main/java/io/ix0rai/bodacious_berries/compat/JuicerEmiRecipe.java +++ b/src/main/java/io/ix0rai/bodacious_berries/compat/JuicerEmiRecipe.java @@ -1,6 +1,5 @@ package io.ix0rai.bodacious_berries.compat; -import com.mojang.blaze3d.systems.RenderSystem; import dev.emi.emi.api.recipe.EmiRecipe; import dev.emi.emi.api.recipe.EmiRecipeCategory; import dev.emi.emi.api.stack.EmiIngredient; @@ -8,7 +7,6 @@ import dev.emi.emi.api.widget.WidgetHolder; import io.ix0rai.bodacious_berries.BodaciousBerries; import io.ix0rai.bodacious_berries.block.entity.JuicerRecipe; -import net.minecraft.client.gui.DrawableHelper; import net.minecraft.util.Identifier; import net.minecraft.util.math.MathHelper; @@ -66,21 +64,20 @@ public int getDisplayHeight() { @Override public void addWidgets(WidgetHolder widgets) { // juicer background and animated textures - widgets.addDrawable(-19, 3, 64, 59, (matrices, mouseX, mouseY, delta) -> { + widgets.addDrawable(-19, 3, 64, 59, (graphics, mouseX, mouseY, delta) -> { // add juicer background - RenderSystem.setShaderTexture(0, JuicerEmiPlugin.JUICER_TEXTURE); - DrawableHelper.drawTexture(matrices, 20, 0, 55, 17, 64, 59, 256, 256); + graphics.drawTexture(JuicerEmiPlugin.JUICER_TEXTURE, 20, 0, 55, 17, 64, 59, 256, 256); // add progress bar final double time = System.currentTimeMillis() / 250d; int progress = MathHelper.floor(time % 16); - DrawableHelper.drawTexture(matrices, 38, 24, 187, 0, 28, progress, 256, 256); + graphics.drawTexture(JuicerEmiPlugin.JUICER_TEXTURE, 38, 24, 187, 0, 28, progress, 256, 256); // add animated bubbles int height = MathHelper.floor(time % 9); - DrawableHelper.drawTexture(matrices, 24, 24 + height, 176, height, 11, 9 - height, 256, 256); - DrawableHelper.drawTexture(matrices, 70, 24 + height, 176, height, 11, 9 - height, 256, 256); + graphics.drawTexture(JuicerEmiPlugin.JUICER_TEXTURE, 24, 24 + height, 176, height, 11, 9 - height, 256, 256); + graphics.drawTexture(JuicerEmiPlugin.JUICER_TEXTURE, 70, 24 + height, 176, height, 11, 9 - height, 256, 256); }); // input and output slots diff --git a/src/main/java/io/ix0rai/bodacious_berries/config/BodaciousConfigScreen.java b/src/main/java/io/ix0rai/bodacious_berries/config/BodaciousConfigScreen.java index 41b13cb7..870a38f3 100644 --- a/src/main/java/io/ix0rai/bodacious_berries/config/BodaciousConfigScreen.java +++ b/src/main/java/io/ix0rai/bodacious_berries/config/BodaciousConfigScreen.java @@ -13,8 +13,8 @@ import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.minecraft.client.MinecraftClient; +import net.minecraft.client.gui.GuiGraphics; import net.minecraft.client.gui.screen.Screen; -import net.minecraft.client.util.math.MatrixStack; import org.jetbrains.annotations.Nullable; import java.util.function.Consumer; @@ -92,7 +92,7 @@ protected void init() { } @Override - public void renderTitle(MatrixStack matrices, int mouseX, int mouseY, float delta) { - drawCenteredText(matrices, this.textRenderer, this.title, this.width / 2, 8, 16777215); + public void renderTitle(GuiGraphics graphics, int mouseX, int mouseY, float delta) { + graphics.drawCenteredShadowedText(this.textRenderer, this.title, this.width / 2, 8, 16777215); } } \ No newline at end of file diff --git a/src/main/java/io/ix0rai/bodacious_berries/mixin/VineDecoratorRedirect.java b/src/main/java/io/ix0rai/bodacious_berries/mixin/VineDecoratorRedirect.java index 47b9736a..8f70c862 100644 --- a/src/main/java/io/ix0rai/bodacious_berries/mixin/VineDecoratorRedirect.java +++ b/src/main/java/io/ix0rai/bodacious_berries/mixin/VineDecoratorRedirect.java @@ -77,6 +77,6 @@ private static boolean hasSupportingBlock(StructureWorldAccess access, BlockPos // block must not be surrounded by air or a non-solid blocks // we only return true if it has a supporting solid block return east != Blocks.AIR || west != Blocks.AIR || north != Blocks.AIR || south != Blocks.AIR - && (east.canMobSpawnInside() || west.canMobSpawnInside() || north.canMobSpawnInside() || south.canMobSpawnInside()); + && (east.canMobSpawnInside(east.getDefaultState()) || west.canMobSpawnInside(west.getDefaultState()) || north.canMobSpawnInside(north.getDefaultState()) || south.canMobSpawnInside(south.getDefaultState())); } } diff --git a/src/main/java/io/ix0rai/bodacious_berries/registry/BodaciousBlocks.java b/src/main/java/io/ix0rai/bodacious_berries/registry/BodaciousBlocks.java index 724b939a..80f92e8a 100644 --- a/src/main/java/io/ix0rai/bodacious_berries/registry/BodaciousBlocks.java +++ b/src/main/java/io/ix0rai/bodacious_berries/registry/BodaciousBlocks.java @@ -11,7 +11,6 @@ import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; import net.fabricmc.fabric.api.object.builder.v1.block.entity.FabricBlockEntityTypeBuilder; import net.minecraft.block.Block; -import net.minecraft.block.Material; import net.minecraft.block.entity.BlockEntityType; import net.minecraft.feature_flags.FeatureFlags; import net.minecraft.item.BlockItem; @@ -21,17 +20,19 @@ import net.minecraft.item.ItemGroups; import net.minecraft.registry.Registries; import net.minecraft.registry.Registry; +import net.minecraft.registry.RegistryKey; import net.minecraft.screen.ScreenHandlerType; +import net.minecraft.sound.BlockSoundGroup; import net.minecraft.util.Identifier; public class BodaciousBlocks { public static final Identifier BERRY_HARVESTER = BodaciousBerries.id("berry_harvester"); - public static final BerryHarvesterBlock BERRY_HARVESTER_BLOCK = new BerryHarvesterBlock(FabricBlockSettings.of(Material.METAL).strength(4.0f)); + public static final BerryHarvesterBlock BERRY_HARVESTER_BLOCK = new BerryHarvesterBlock(FabricBlockSettings.create().sounds(BlockSoundGroup.COPPER).strength(4.0f)); public static final BlockEntityType BERRY_HARVESTER_ENTITY = FabricBlockEntityTypeBuilder.create(BerryHarvesterBlockEntity::new, BERRY_HARVESTER_BLOCK).build(null); public static final ScreenHandlerType BERRY_HARVESTER_SCREEN_HANDLER = new ScreenHandlerType<>(BerryHarvesterScreenHandler::new, FeatureFlags.DEFAULT_SET); public static final Identifier JUICER = BodaciousBerries.id("juicer"); - public static final JuicerBlock JUICER_BLOCK = new JuicerBlock(FabricBlockSettings.of(Material.METAL).strength(4.0f)); + public static final JuicerBlock JUICER_BLOCK = new JuicerBlock(FabricBlockSettings.create().sounds(BlockSoundGroup.COPPER).strength(4.0f)); public static final BlockEntityType JUICER_ENTITY = FabricBlockEntityTypeBuilder.create(JuicerBlockEntity::new, JUICER_BLOCK).build(null); public static final ScreenHandlerType JUICER_SCREEN_HANDLER = new ScreenHandlerType<>(JuicerScreenHandler::new, FeatureFlags.DEFAULT_SET); @@ -42,7 +43,7 @@ public static void register() { BodaciousBushes.register(); } - private static void register(Identifier id, Block block, BlockEntityType entity, ScreenHandlerType handler, ItemGroup group) { + private static void register(Identifier id, Block block, BlockEntityType entity, ScreenHandlerType handler, RegistryKey group) { Registry.register(Registries.BLOCK, id, block); Registry.register(Registries.SCREEN_HANDLER_TYPE, id, handler); Registry.register(Registries.BLOCK_ENTITY_TYPE, BodaciousBerries.id(id.getPath() + "_entity"), entity); diff --git a/src/main/java/io/ix0rai/bodacious_berries/registry/BodaciousBushes.java b/src/main/java/io/ix0rai/bodacious_berries/registry/BodaciousBushes.java index c14cc256..4bf1cc9b 100644 --- a/src/main/java/io/ix0rai/bodacious_berries/registry/BodaciousBushes.java +++ b/src/main/java/io/ix0rai/bodacious_berries/registry/BodaciousBushes.java @@ -12,7 +12,6 @@ import io.ix0rai.bodacious_berries.block.SpikedBerryBush; import net.minecraft.block.AbstractBlock; import net.minecraft.block.Block; -import net.minecraft.block.Material; import net.minecraft.registry.Registries; import net.minecraft.registry.Registry; import net.minecraft.registry.RegistryKeys; @@ -42,7 +41,7 @@ public class BodaciousBushes { private static final VoxelShape LARGE_RASPBERRY = Block.createCuboidShape(1.0D, 0.0D, 1.0D, 15.0D, 13.0D, 15.0D); private static final VoxelShape LARGE_CLOUDBERRY = Block.createCuboidShape(3.0D, 0.0D, 3.0D, 13.0D, 15.0D, 13.0D); - public static final AbstractBlock.Settings BERRY_BUSH_SETTINGS = AbstractBlock.Settings.of(Material.PLANT).ticksRandomly().noCollision().sounds(BlockSoundGroup.SWEET_BERRY_BUSH).nonOpaque(); + public static final AbstractBlock.Settings BERRY_BUSH_SETTINGS = AbstractBlock.Settings.create().ticksRandomly().noCollision().sounds(BlockSoundGroup.SWEET_BERRY_BUSH).nonOpaque(); public static final ChorusBerryBush CHORUS_BERRY_BUSH = new ChorusBerryBush(Berry.CHORUS_BERRIES, SMALL_LINGONBERRY, LARGE_LINGONBERRY, 2); diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index d575a23f..5b61b6b5 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -38,14 +38,13 @@ "depends": { "fabricloader": ">=0.14.14", - "fabric-api": ">=0.69.0", - "minecraft": ">=1.19.4", - "java": ">=17" + "fabric-api": ">=0.83.0", + "minecraft": ">=1.20" }, "suggests": { - "emi": ">=0.7.0", - "modmenu": ">=6.0.0" + "emi": ">=1.0.0", + "modmenu": ">=7.0.0" }, "custom": {