From 06facb3daf981f9b1530eaedf5978de8e8711203 Mon Sep 17 00:00:00 2001 From: haykam821 <24855774+haykam821@users.noreply.github.com> Date: Mon, 8 Jul 2024 18:46:17 -0400 Subject: [PATCH] Update minigame to Minecraft 1.20.4 --- build.gradle | 11 +++++++---- gradle.properties | 10 +++++----- .../volleyball/entity/VolleyballEntityTypes.java | 6 ++---- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/build.gradle b/build.gradle index bdc2668..8ad5724 100644 --- a/build.gradle +++ b/build.gradle @@ -1,11 +1,8 @@ plugins { - id "fabric-loom" version "1.4.4" + id "fabric-loom" version "1.7.2" id "maven-publish" } -sourceCompatibility = JavaVersion.VERSION_17 -targetCompatibility = JavaVersion.VERSION_17 - archivesBaseName = project.archives_base_name version = project.mod_version group = project.maven_group @@ -42,7 +39,13 @@ processResources { } } +java { + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 +} + tasks.withType(JavaCompile) { + options.release = 17 options.encoding = "UTF-8" } diff --git a/gradle.properties b/gradle.properties index ca1a8d3..ad14b99 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,9 +5,9 @@ mod_version = 1.0.0 org.gradle.jvmargs = -Xmx1G # Versions -minecraft_version = 1.20.1 -yarn_mappings = 1.20.1+build.10 -loader_version = 0.14.24 -fabric_version = 0.90.7+1.20.1 +minecraft_version = 1.20.4 +yarn_mappings = 1.20.4+build.3 +loader_version = 0.15.11 +fabric_version = 0.97.1+1.20.4 -plasmid_version = 0.5.100+1.20.1 \ No newline at end of file +plasmid_version = 0.5.102-SNAPSHOT+1.20.4 \ No newline at end of file diff --git a/src/main/java/io/github/haykam821/volleyball/entity/VolleyballEntityTypes.java b/src/main/java/io/github/haykam821/volleyball/entity/VolleyballEntityTypes.java index 06c6bf8..c521661 100644 --- a/src/main/java/io/github/haykam821/volleyball/entity/VolleyballEntityTypes.java +++ b/src/main/java/io/github/haykam821/volleyball/entity/VolleyballEntityTypes.java @@ -3,8 +3,6 @@ import eu.pb4.polymer.core.api.entity.PolymerEntityUtils; import io.github.haykam821.volleyball.Volleyball; import net.fabricmc.fabric.api.object.builder.v1.entity.FabricDefaultAttributeRegistry; -import net.fabricmc.fabric.api.object.builder.v1.entity.FabricEntityTypeBuilder; -import net.minecraft.entity.EntityDimensions; import net.minecraft.entity.EntityType; import net.minecraft.entity.LivingEntity; import net.minecraft.entity.SpawnGroup; @@ -14,8 +12,8 @@ public final class VolleyballEntityTypes { private static final Identifier BALL_ID = new Identifier(Volleyball.MOD_ID, "ball"); - public static final EntityType BALL = FabricEntityTypeBuilder.create(SpawnGroup.MISC, BallEntity::new) - .dimensions(EntityDimensions.changing(8 / 16f, 8 / 16f)) + public static final EntityType BALL = EntityType.Builder.create(BallEntity::new, SpawnGroup.MISC) + .setDimensions(8 / 16f, 8 / 16f) .build(); private VolleyballEntityTypes() {