diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 160f9b2..2df97a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: !contains(github.event.head_commit.message, '[ciskip]') uses: nanite/workflows/.github/workflows/standard-modmuss.yml@v1.1 with: - java-version: 17 + java-version: 21 changelog-file: "./CHANGELOG.md" release-to-github: false secrets: diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index c7b676f..1895fb5 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -13,5 +13,6 @@ jobs: secrets: nanite-token: ${{ secrets.NANITE_DEPLOY }} with: + java-version: 21 use-snapshots: true gradle-tasks: build publish \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index b60f8a6..62ab69b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,3 @@ -### 4.0.4 +### 6.0.0 -- Fix Advancement not working \ No newline at end of file +- Update to Minecraft 1.21 \ No newline at end of file diff --git a/build.gradle b/build.gradle index 12048cf..7fe9c0a 100644 --- a/build.gradle +++ b/build.gradle @@ -1,22 +1,22 @@ plugins { - id("dev.nanite.mlp") version("0.1.1") + id("dev.nanite.mlp") version("0.1.10") id("java-library") id("maven-publish") id("me.modmuss50.mod-publish-plugin") version "0.3.0" } -java.toolchain.languageVersion = JavaLanguageVersion.of(17) +java.toolchain.languageVersion = JavaLanguageVersion.of(21) multiLoader.root() { minecraftVersion.set(project.property("minecraft_version")) modID.set(project.property("mod_id")) splitSources.set(true) - convertAccessWidener.set(true) accessWidenerFile.set(project(":common").file("src/main/resources/${mod_id}.accesswidener")) dataGen { useFabric.set(project(":common").file("src/generated/resources")) } + } allprojects { @@ -38,7 +38,7 @@ subprojects { sourceSets.main.resources.srcDir project.file('src/generated/resources') - java.toolchain.languageVersion = JavaLanguageVersion.of(17) + java.toolchain.languageVersion = JavaLanguageVersion.of(21) base { @@ -46,8 +46,12 @@ subprojects { } repositories { maven { - name = "Creeperhost" - url = uri("https://maven.creeperhost.net/") + name = "NeoForge" + url = "https://maven.neoforged.net/" + } + maven { + name = "Fabric" + url = "https://maven.fabricmc.net/" } maven { name = "Nanite" @@ -58,6 +62,10 @@ subprojects { outputs.upToDateWhen { false } } + test { + enabled = false + } + publishing { repositories { if (providers.environmentVariable("NANITE_TOKEN").isPresent()) { @@ -95,12 +103,6 @@ publishMods { modLoaders.add("fabric") } - def forgeOptions = publishOptions { - file = project.provider { project(":forge").tasks.jar }.flatMap { it.archiveFile } - displayName = "${project.name} Forge ${mod_version}+mc${minecraft_version}" - modLoaders.add("forge") - } - def neoOptions = publishOptions { file = project.provider { project(":neo").tasks.jar }.flatMap { it.archiveFile } displayName = "${project.name} Neo ${mod_version}+mc${minecraft_version}" @@ -124,10 +126,6 @@ publishMods { } } - curseforge("curseforgeForge") { - from(curseForgeOptions, forgeOptions) - } - curseforge("curseforgeNeoForge") { from(curseForgeOptions, neoOptions) } diff --git a/common/src/client/java/com/unrealdinnerbone/obsidianboat/client/ObsidianBoatRender.java b/common/src/client/java/com/unrealdinnerbone/obsidianboat/client/ObsidianBoatRender.java index 0a1ef2b..3840672 100644 --- a/common/src/client/java/com/unrealdinnerbone/obsidianboat/client/ObsidianBoatRender.java +++ b/common/src/client/java/com/unrealdinnerbone/obsidianboat/client/ObsidianBoatRender.java @@ -14,13 +14,13 @@ public class ObsidianBoatRender extends BoatRenderer { - public static final ModelLayerLocation LOCATION = new ModelLayerLocation(new ResourceLocation(ObsidianBoat.MOD_ID, "obsidian_boat"), "main"); + public static final ModelLayerLocation LOCATION = new ModelLayerLocation(ObsidianBoat.rl( "obsidian_boat"), "main"); private final ResourceLocation texture; public ObsidianBoatRender(EntityRendererProvider.Context dispatcher) { super(dispatcher, false); - this.texture = new ResourceLocation(ObsidianBoat.MOD_ID, "textures/entity/obsidian_boat.png"); + this.texture = ObsidianBoat.rl("textures/entity/obsidian_boat.png"); boatResources = Map.of(Boat.Type.OAK, Pair.of(texture, new BoatModel(dispatcher.bakeLayer(LOCATION)))); } diff --git a/common/src/generated/resources/.cache/048cbd7596a74e9a5aebee5c3e5ec0f2019e93c5 b/common/src/generated/resources/.cache/048cbd7596a74e9a5aebee5c3e5ec0f2019e93c5 index 52cf46d..55c0226 100644 --- a/common/src/generated/resources/.cache/048cbd7596a74e9a5aebee5c3e5ec0f2019e93c5 +++ b/common/src/generated/resources/.cache/048cbd7596a74e9a5aebee5c3e5ec0f2019e93c5 @@ -1,2 +1,2 @@ -// 1.20.1 2023-08-09T14:45:43.8652388 Obsidian Boat/Model Definitions +// 1.21 2024-06-13T13:28:52.2696503 Obsidian Boat/Model Definitions db54f38a1594a0f71ae2b4dd7367a72f9ba6d320 assets\obsidianboat\models\item\obsidian_boat.json diff --git a/common/src/generated/resources/.cache/8592a013770b9a918aaf0557b8379b5e00456828 b/common/src/generated/resources/.cache/8592a013770b9a918aaf0557b8379b5e00456828 index 7889a0a..a13e5e6 100644 --- a/common/src/generated/resources/.cache/8592a013770b9a918aaf0557b8379b5e00456828 +++ b/common/src/generated/resources/.cache/8592a013770b9a918aaf0557b8379b5e00456828 @@ -1,2 +1,2 @@ -// 1.20.1 2023-08-09T14:45:43.8648864 Obsidian Boat/Language (en_us) +// 1.21 2024-06-13T13:28:52.2691514 Obsidian Boat/Language (en_us) a7d157e3941a596cf1a9fb9925adc58d085baaab assets\obsidianboat\lang\en_us.json diff --git a/common/src/generated/resources/.cache/dbdf4bbea9f55df734427dda8ee4bcb7c4c8439e b/common/src/generated/resources/.cache/dbdf4bbea9f55df734427dda8ee4bcb7c4c8439e index ad5b5d8..fd2d32a 100644 --- a/common/src/generated/resources/.cache/dbdf4bbea9f55df734427dda8ee4bcb7c4c8439e +++ b/common/src/generated/resources/.cache/dbdf4bbea9f55df734427dda8ee4bcb7c4c8439e @@ -1,2 +1,2 @@ -// 1.20.1 2023-08-09T14:45:43.8633813 Obsidian Boat/Advancements -0add7ba9f9ed61d9dac42378e162dcd94f9bd98e data\obsidianboat\advancements\obsidianboat.json +// 1.21 2024-06-13T13:28:52.2682707 Obsidian Boat/Advancements +a3bb6ad0acd6d446a0a03d2af19e4a3249a8791c data\obsidianboat\advancement\obsidianboat.json diff --git a/common/src/generated/resources/.cache/ee14de1d8ce97975f07dd66153061c5d3791ad6f b/common/src/generated/resources/.cache/ee14de1d8ce97975f07dd66153061c5d3791ad6f index 403de1d..df93304 100644 --- a/common/src/generated/resources/.cache/ee14de1d8ce97975f07dd66153061c5d3791ad6f +++ b/common/src/generated/resources/.cache/ee14de1d8ce97975f07dd66153061c5d3791ad6f @@ -1,3 +1,3 @@ -// 1.20.1 2023-08-09T14:45:43.8657489 Obsidian Boat/Recipes -42167c87c3b2c9db6d765326f2c81d2ab816b20a data\obsidianboat\advancements\recipes\transportation\obsidian_boat.json -8d0abd28f06bfb7ca69ca3bd3ec89ab50b768085 data\obsidianboat\recipes\obsidian_boat.json +// 1.21 2024-06-13T13:28:52.2696503 Obsidian Boat/Recipes +88bfc7f370ddda39ba5b85ee4c9fae3e4a9420ee data\obsidianboat\advancement\recipes\transportation\obsidian_boat.json +aeb9d6e53f55eae54734aef38ef40191be6c6a44 data\obsidianboat\recipe\obsidian_boat.json diff --git a/common/src/generated/resources/.cache/efc17561285db336505206f3ced1e22d2913ad29 b/common/src/generated/resources/.cache/efc17561285db336505206f3ced1e22d2913ad29 index 6dc72e9..ade2ba8 100644 --- a/common/src/generated/resources/.cache/efc17561285db336505206f3ced1e22d2913ad29 +++ b/common/src/generated/resources/.cache/efc17561285db336505206f3ced1e22d2913ad29 @@ -1,2 +1,2 @@ -// 1.20.1 2023-08-09T14:45:43.8638815 Obsidian Boat/Pack Metadata -bf3a2399e4449bd8af5b7765ddce0ed0a7d28f19 pack.mcmeta +// 1.21 2024-06-13T13:28:52.2691514 Obsidian Boat/Pack Metadata +45d700dacf244919424ad2a9fbc4bf645abb3040 pack.mcmeta diff --git a/common/src/generated/resources/data/obsidianboat/advancements/obsidianboat.json b/common/src/generated/resources/data/obsidianboat/advancement/obsidianboat.json similarity index 87% rename from common/src/generated/resources/data/obsidianboat/advancements/obsidianboat.json rename to common/src/generated/resources/data/obsidianboat/advancement/obsidianboat.json index 82e6090..47ffdd6 100644 --- a/common/src/generated/resources/data/obsidianboat/advancements/obsidianboat.json +++ b/common/src/generated/resources/data/obsidianboat/advancement/obsidianboat.json @@ -10,7 +10,8 @@ }, "hidden": true, "icon": { - "item": "obsidianboat:obsidian_boat" + "count": 1, + "id": "obsidianboat:obsidian_boat" }, "title": { "translate": "advancements.obsidianboat.root.title" diff --git a/common/src/generated/resources/data/obsidianboat/advancements/recipes/transportation/obsidian_boat.json b/common/src/generated/resources/data/obsidianboat/advancement/recipes/transportation/obsidian_boat.json similarity index 88% rename from common/src/generated/resources/data/obsidianboat/advancements/recipes/transportation/obsidian_boat.json rename to common/src/generated/resources/data/obsidianboat/advancement/recipes/transportation/obsidian_boat.json index d5feae5..2c4cd9d 100644 --- a/common/src/generated/resources/data/obsidianboat/advancements/recipes/transportation/obsidian_boat.json +++ b/common/src/generated/resources/data/obsidianboat/advancement/recipes/transportation/obsidian_boat.json @@ -5,9 +5,7 @@ "conditions": { "items": [ { - "items": [ - "minecraft:obsidian" - ] + "items": "minecraft:obsidian" } ] }, diff --git a/common/src/generated/resources/data/obsidianboat/recipes/obsidian_boat.json b/common/src/generated/resources/data/obsidianboat/recipe/obsidian_boat.json similarity index 77% rename from common/src/generated/resources/data/obsidianboat/recipes/obsidian_boat.json rename to common/src/generated/resources/data/obsidianboat/recipe/obsidian_boat.json index 45f0d8e..2553588 100644 --- a/common/src/generated/resources/data/obsidianboat/recipes/obsidian_boat.json +++ b/common/src/generated/resources/data/obsidianboat/recipe/obsidian_boat.json @@ -11,6 +11,7 @@ "OOO" ], "result": { - "item": "obsidianboat:obsidian_boat" + "count": 1, + "id": "obsidianboat:obsidian_boat" } } \ No newline at end of file diff --git a/common/src/generated/resources/pack.mcmeta b/common/src/generated/resources/pack.mcmeta index 6dda90f..1601547 100644 --- a/common/src/generated/resources/pack.mcmeta +++ b/common/src/generated/resources/pack.mcmeta @@ -1,6 +1,6 @@ { "pack": { "description": "obsidianboat", - "pack_format": 26 + "pack_format": 48 } } \ No newline at end of file diff --git a/common/src/main/java/com/unrealdinnerbone/obsidianboat/ObsidianBoat.java b/common/src/main/java/com/unrealdinnerbone/obsidianboat/ObsidianBoat.java index a30a122..ef22428 100644 --- a/common/src/main/java/com/unrealdinnerbone/obsidianboat/ObsidianBoat.java +++ b/common/src/main/java/com/unrealdinnerbone/obsidianboat/ObsidianBoat.java @@ -1,6 +1,14 @@ package com.unrealdinnerbone.obsidianboat; +import com.unrealdinnerbone.trenzalore.lib.RLUtils; +import net.minecraft.resources.ResourceLocation; + public class ObsidianBoat { public static final String MOD_ID = "obsidianboat"; + + public static ResourceLocation rl(String path) { + return RLUtils.rl(MOD_ID, path); + } + } \ No newline at end of file diff --git a/common/src/main/java/com/unrealdinnerbone/obsidianboat/advancements/BoatTrigger.java b/common/src/main/java/com/unrealdinnerbone/obsidianboat/advancements/BoatTrigger.java index b4fbc51..0c45bda 100644 --- a/common/src/main/java/com/unrealdinnerbone/obsidianboat/advancements/BoatTrigger.java +++ b/common/src/main/java/com/unrealdinnerbone/obsidianboat/advancements/BoatTrigger.java @@ -3,24 +3,27 @@ import com.mojang.serialization.Codec; import com.mojang.serialization.codecs.RecordCodecBuilder; import com.unrealdinnerbone.obsidianboat.ObsidianBoat; +import com.unrealdinnerbone.trenzalore.lib.RLUtils; import net.minecraft.advancements.critereon.ContextAwarePredicate; import net.minecraft.advancements.critereon.EntityPredicate; import net.minecraft.advancements.critereon.SimpleCriterionTrigger; import net.minecraft.resources.ResourceLocation; import net.minecraft.server.level.ServerPlayer; import net.minecraft.util.ExtraCodecs; +import org.jetbrains.annotations.NotNull; import java.util.Optional; public class BoatTrigger extends SimpleCriterionTrigger { - public static final ResourceLocation ID = new ResourceLocation(ObsidianBoat.MOD_ID, ObsidianBoat.MOD_ID); + public static final ResourceLocation ID = ObsidianBoat.rl(ObsidianBoat.MOD_ID); public void trigger(ServerPlayer serverPlayerEntity) { this.trigger(serverPlayerEntity, (value) -> true); } @Override + @NotNull public Codec codec() { return Instance.CODEC; } @@ -28,8 +31,7 @@ public Codec codec() { public static record Instance(Optional player) implements SimpleCriterionTrigger.SimpleInstance { public static final Codec CODEC = RecordCodecBuilder.create((instance) -> - instance.group(ExtraCodecs.strictOptionalField(EntityPredicate.ADVANCEMENT_CODEC, "player") - .forGetter(Instance::player)) + instance.group(EntityPredicate.ADVANCEMENT_CODEC.optionalFieldOf("player").forGetter(Instance::player)) .apply(instance, Instance::new)); } diff --git a/fabric/src/main/java/com/unrealdinnerbone/obsidianboat/data/AdvancementProvider.java b/fabric/src/main/java/com/unrealdinnerbone/obsidianboat/data/AdvancementProvider.java index 5173f31..091bffe 100644 --- a/fabric/src/main/java/com/unrealdinnerbone/obsidianboat/data/AdvancementProvider.java +++ b/fabric/src/main/java/com/unrealdinnerbone/obsidianboat/data/AdvancementProvider.java @@ -11,26 +11,28 @@ import net.minecraft.advancements.critereon.ChangeDimensionTrigger; import net.minecraft.advancements.critereon.ContextAwarePredicate; import net.minecraft.advancements.critereon.ItemUsedOnLocationTrigger; +import net.minecraft.core.HolderLookup; import net.minecraft.network.chat.Component; import net.minecraft.resources.ResourceLocation; import java.util.Optional; +import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; public class AdvancementProvider extends FabricAdvancementProvider { - public AdvancementProvider(FabricDataOutput output) { - super(output); + public AdvancementProvider(FabricDataOutput output, CompletableFuture registryLookup) { + super(output, registryLookup); } @Override - public void generateAdvancement(Consumer consumer) { + public void generateAdvancement(HolderLookup.Provider registryLookup, Consumer consumer) { consumer.accept(Advancement.Builder.advancement() .display(OBRegistry.BOAT_ITEM.get(), getTranslation("title"), getTranslation("description"), null, AdvancementType.TASK, true, true, true) .addCriterion("placed_boat", OBRegistry.BOAT_TRIGGER.get().createCriterion(new BoatTrigger.Instance(Optional.empty()))) - .build(new ResourceLocation(ObsidianBoat.MOD_ID, ObsidianBoat.MOD_ID))); + .build(ObsidianBoat.rl( ObsidianBoat.MOD_ID))); diff --git a/fabric/src/main/java/com/unrealdinnerbone/obsidianboat/data/LangProvider.java b/fabric/src/main/java/com/unrealdinnerbone/obsidianboat/data/LangProvider.java index d16c459..a3e2c8d 100644 --- a/fabric/src/main/java/com/unrealdinnerbone/obsidianboat/data/LangProvider.java +++ b/fabric/src/main/java/com/unrealdinnerbone/obsidianboat/data/LangProvider.java @@ -3,15 +3,18 @@ import com.unrealdinnerbone.obsidianboat.OBRegistry; import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; import net.fabricmc.fabric.api.datagen.v1.provider.FabricLanguageProvider; +import net.minecraft.core.HolderLookup; + +import java.util.concurrent.CompletableFuture; public class LangProvider extends FabricLanguageProvider { - protected LangProvider(FabricDataOutput dataOutput) { - super(dataOutput); + protected LangProvider(FabricDataOutput dataOutput, CompletableFuture registryLookup) { + super(dataOutput, registryLookup); } @Override - public void generateTranslations(TranslationBuilder translationBuilder) { + public void generateTranslations(HolderLookup.Provider registryLookup, TranslationBuilder translationBuilder) { translationBuilder.add(OBRegistry.BOAT_ITEM.get(), "Obsidian Boat"); translationBuilder.add(OBRegistry.ENTITY_TYPE.get(), "Obsidian Boat"); translationBuilder.add("advancements.obsidianboat.root.description", "Did you really think that would work?"); diff --git a/fabric/src/main/java/com/unrealdinnerbone/obsidianboat/data/RecipeProvider.java b/fabric/src/main/java/com/unrealdinnerbone/obsidianboat/data/RecipeProvider.java index 542188e..e4dcecf 100644 --- a/fabric/src/main/java/com/unrealdinnerbone/obsidianboat/data/RecipeProvider.java +++ b/fabric/src/main/java/com/unrealdinnerbone/obsidianboat/data/RecipeProvider.java @@ -4,6 +4,7 @@ import com.unrealdinnerbone.obsidianboat.ObsidianBoat; import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; import net.fabricmc.fabric.api.datagen.v1.provider.FabricRecipeProvider; +import net.minecraft.core.HolderLookup; import net.minecraft.data.recipes.RecipeCategory; import net.minecraft.data.recipes.RecipeOutput; import net.minecraft.data.recipes.ShapedRecipeBuilder; @@ -11,12 +12,13 @@ import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.Blocks; +import java.util.concurrent.CompletableFuture; import java.util.function.Consumer; public class RecipeProvider extends FabricRecipeProvider { - public RecipeProvider(FabricDataOutput output) { - super(output); + public RecipeProvider(FabricDataOutput output, CompletableFuture registryLookup) { + super(output, registryLookup); } @Override @@ -25,6 +27,6 @@ public void buildRecipes(RecipeOutput exporter) { .pattern("O O") .pattern("OOO") .unlockedBy("has_obsidian", has(Blocks.OBSIDIAN)) - .define('O', Blocks.OBSIDIAN).save(exporter, new ResourceLocation(ObsidianBoat.MOD_ID, "obsidian_boat")); + .define('O', Blocks.OBSIDIAN).save(exporter, ObsidianBoat.rl("obsidian_boat")); } } diff --git a/forge/build.gradle b/forge/build.gradle deleted file mode 100644 index 540d86e..0000000 --- a/forge/build.gradle +++ /dev/null @@ -1,33 +0,0 @@ -multiLoader.forge() { - forgeVersion.set("${forge_version}") -} - -publishing.publications.mavenJava.artifact jar - -repositories { - maven { - url "https://cursemaven.com" - } - maven { - url "https://maven.nanite.dev/releases" - } -} - - -java.sourceSets { - main { - java { - srcDirs = ["src/main/java", project(":common").file("src/client/java")] - } - resources { - srcDirs = ["src/main/resources", project(":common").file("src/client/resources")] - } - } -} - -dependencies { - implementation(fg.deobf("com.unrealdinnerbone:trenzalore-forge:${project.property("trenzalore_version")}+mc${project.property("minecraft_version")}")) { - transitive = true - } -// implementation fg.deobf("mekanism:Mekanism:${mekanism_version}") -} diff --git a/forge/src/main/java/com/unrealdinnerbone/obsidianboat/OBClientForge.java b/forge/src/main/java/com/unrealdinnerbone/obsidianboat/OBClientForge.java deleted file mode 100644 index 19a9e19..0000000 --- a/forge/src/main/java/com/unrealdinnerbone/obsidianboat/OBClientForge.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.unrealdinnerbone.obsidianboat; - -import com.unrealdinnerbone.obsidianboat.client.ObsidianBoatRender; -import com.unrealdinnerbone.trenzalore.api.registry.Regeneration; -import net.minecraft.client.model.BoatModel; -import net.minecraftforge.client.event.EntityRenderersEvent; -import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; - -public class OBClientForge -{ - public static void init() { - FMLJavaModLoadingContext.get().getModEventBus().addListener(OBClientForge::doClientStuff); - FMLJavaModLoadingContext.get().getModEventBus().addListener(OBClientForge::doClientStuffTwo); - } - public static void doClientStuff(final EntityRenderersEvent.RegisterRenderers event) { - event.registerEntityRenderer(OBRegistry.ENTITY_TYPE.get(), ObsidianBoatRender::new); - } - - public static void doClientStuffTwo(final EntityRenderersEvent.RegisterLayerDefinitions event) { - event.registerLayerDefinition(ObsidianBoatRender.LOCATION, () -> BoatModel.createBodyModel()); - } -} diff --git a/forge/src/main/java/com/unrealdinnerbone/obsidianboat/ObsidianBoatForge.java b/forge/src/main/java/com/unrealdinnerbone/obsidianboat/ObsidianBoatForge.java deleted file mode 100644 index eccb6cf..0000000 --- a/forge/src/main/java/com/unrealdinnerbone/obsidianboat/ObsidianBoatForge.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.unrealdinnerbone.obsidianboat; - -import net.minecraftforge.api.distmarker.Dist; -import net.minecraftforge.fml.DistExecutor; -import net.minecraftforge.fml.common.Mod; - -@Mod(ObsidianBoat.MOD_ID) -public class ObsidianBoatForge { - - public ObsidianBoatForge() { - DistExecutor.runWhenOn(Dist.CLIENT, () -> () -> OBClientForge.init()); - } - -} \ No newline at end of file diff --git a/forge/src/main/resources/META-INF/accesstransformer.cfg b/forge/src/main/resources/META-INF/accesstransformer.cfg deleted file mode 100644 index 9cafbba..0000000 --- a/forge/src/main/resources/META-INF/accesstransformer.cfg +++ /dev/null @@ -1,15 +0,0 @@ -public net.minecraft.world.entity.vehicle.Boat f_38277_ -protected-f net.minecraft.world.entity.vehicle.Boat m_38394_()Lnet/minecraft/world/entity/vehicle/Boat$Status; -public net.minecraft.world.entity.vehicle.Boat f_38281_ -protected-f net.minecraft.world.entity.vehicle.Boat m_38395_()V -public net.minecraft.world.entity.vehicle.Boat f_38264_ -public net.minecraft.world.entity.vehicle.Boat f_38280_ -public net.minecraft.world.entity.vehicle.Boat f_38279_ -public net.minecraft.world.entity.vehicle.Boat f_38278_ -public net.minecraft.world.entity.vehicle.Boat f_38266_ -protected-f net.minecraft.world.entity.vehicle.Boat m_38393_()Z -public net.minecraft.world.entity.vehicle.Boat m_38392_()Lnet/minecraft/world/entity/vehicle/Boat$Status; -public net.minecraft.client.renderer.entity.BoatRenderer f_173934_ -public-f net.minecraft.client.renderer.entity.BoatRenderer f_173934_ -public net.minecraft.world.entity.EntityType$Builder m_20704_(Lnet/minecraft/world/entity/EntityType$EntityFactory;Lnet/minecraft/world/entity/MobCategory;)Lnet/minecraft/world/entity/EntityType$Builder; -public net.minecraft.world.entity.EntityType$EntityFactory diff --git a/forge/src/main/resources/META-INF/mods.toml b/forge/src/main/resources/META-INF/mods.toml deleted file mode 100644 index ae25814..0000000 --- a/forge/src/main/resources/META-INF/mods.toml +++ /dev/null @@ -1,30 +0,0 @@ -modLoader="javafml" -loaderVersion="[44,)" -license="All Rights Reserved unless stated otherwise. Distribution permission is given to FeedTheBeast and CurseForge for use in modpacks" -[[mods]] -modId="obsidianboat" -version="${mod_version}" -displayName="Obsidian Boat" -logoFile="logo.png" -authors="UnRealDinnerbone" -description=''' -Adds an Obsidian Boat that works on lava -''' -[[dependencies.obsidianboat]] -modId="forge" -mandatory=true -versionRange="[44,)" -ordering="NONE" -side="BOTH" -[[dependencies.obsidianboat]] -modId="minecraft" -mandatory=true -versionRange="[${minecraft_version}]" -ordering="NONE" -side="BOTH" -[[dependencies.obsidianboat]] -modId="trenzalore" -mandatory=true -versionRange="[${trenzalore_version},)" -ordering="NONE" -side="BOTH" \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index e985fe1..bdf92df 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ # Project -mod_version=4.0.4 +mod_version=6.0.0 maven_group=com.unrealdinnerbone mod_name=ObsidianBoat mod_author=UnRealDinnerbone @@ -7,20 +7,19 @@ mod_id=obsidianboat curse_id=510648 # Common -minecraft_version=1.20.4 +minecraft_version=1.21 # Forge -forge_version=49.0.13 +#forge_version=49.0.13 -neo_version=20.4.70-beta +neo_version=21.0.0-beta -fabric_version=0.91.2+1.20.4 -fabric_loader_version=0.15.1 +fabric_version=0.100.1+1.21 +fabric_loader_version=0.15.11 # Other -trenzalore_version=4.0.1 +trenzalore_version=6.0.0 # Gradle org.gradle.jvmargs=-Xmx3G -org.gradle.daemon=false - +org.gradle.daemon=false \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index a595206..0d18421 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/neo/src/main/java/com/unrealdinnerbone/obsidianboat/OBClientForge.java b/neo/src/main/java/com/unrealdinnerbone/obsidianboat/OBClientNeo.java similarity index 82% rename from neo/src/main/java/com/unrealdinnerbone/obsidianboat/OBClientForge.java rename to neo/src/main/java/com/unrealdinnerbone/obsidianboat/OBClientNeo.java index 1514ed2..264e018 100644 --- a/neo/src/main/java/com/unrealdinnerbone/obsidianboat/OBClientForge.java +++ b/neo/src/main/java/com/unrealdinnerbone/obsidianboat/OBClientNeo.java @@ -5,11 +5,11 @@ import net.neoforged.bus.api.IEventBus; import net.neoforged.neoforge.client.event.EntityRenderersEvent; -public class OBClientForge +public class OBClientNeo { public static void init(IEventBus eventBus) { - eventBus.addListener(OBClientForge::doClientStuff); - eventBus.addListener(OBClientForge::doClientStuffTwo); + eventBus.addListener(OBClientNeo::doClientStuff); + eventBus.addListener(OBClientNeo::doClientStuffTwo); } public static void doClientStuff(final EntityRenderersEvent.RegisterRenderers event) { event.registerEntityRenderer(OBRegistry.ENTITY_TYPE.get(), ObsidianBoatRender::new); diff --git a/neo/src/main/java/com/unrealdinnerbone/obsidianboat/ObsidianBoatForge.java b/neo/src/main/java/com/unrealdinnerbone/obsidianboat/ObsidianBoatNeo.java similarity index 64% rename from neo/src/main/java/com/unrealdinnerbone/obsidianboat/ObsidianBoatForge.java rename to neo/src/main/java/com/unrealdinnerbone/obsidianboat/ObsidianBoatNeo.java index b839526..1af5a0e 100644 --- a/neo/src/main/java/com/unrealdinnerbone/obsidianboat/ObsidianBoatForge.java +++ b/neo/src/main/java/com/unrealdinnerbone/obsidianboat/ObsidianBoatNeo.java @@ -5,11 +5,11 @@ import net.neoforged.fml.common.Mod; @Mod(ObsidianBoat.MOD_ID) -public class ObsidianBoatForge { +public class ObsidianBoatNeo { - public ObsidianBoatForge(IEventBus eventBus, Dist dist) { + public ObsidianBoatNeo(IEventBus eventBus, Dist dist) { if(dist == Dist.CLIENT) { - OBClientForge.init(eventBus); + OBClientNeo.init(eventBus); } } diff --git a/settings.gradle b/settings.gradle index 6ce624f..b534184 100644 --- a/settings.gradle +++ b/settings.gradle @@ -23,4 +23,4 @@ pluginManagement { -include("common", "neo", "fabric", "forge") \ No newline at end of file +include("common", "neo", "fabric") \ No newline at end of file