Skip to content

Commit

Permalink
feat: update to minecraft 1.19.4
Browse files Browse the repository at this point in the history
  • Loading branch information
oddlama committed Mar 19, 2023
1 parent 9a24e78 commit b842756
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
12 changes: 6 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
plugins {
`java-library`
id("io.papermc.paperweight.userdev") version "1.4.0"
id("io.papermc.paperweight.userdev") version "1.5.3"
id("xyz.jpenilla.run-paper") version "1.0.6" // Adds runServer and runMojangMappedServer tasks for testing
}

dependencies {
paperDevBundle("1.19.3-R0.1-SNAPSHOT")
paperDevBundle("1.19.4-R0.1-SNAPSHOT")
}

java {
Expand All @@ -28,7 +28,7 @@ subprojects {
repositories() {
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://repo.dmulloy2.net/nexus/repository/public/")
//maven("https://repo.dmulloy2.net/nexus/repository/public/")
maven("https://repo.mikeprimm.com/")
maven("https://repo.codemc.org/repository/maven-public/")
maven("https://jitpack.io")
Expand All @@ -41,8 +41,8 @@ subprojects {
}

dependencies {
compileOnly(group = "org.jetbrains", name = "annotations", version = "20.0.0")
annotationProcessor("org.jetbrains:annotations:20.0.0")
compileOnly(group = "org.jetbrains", name = "annotations", version = "24.0.1")
annotationProcessor("org.jetbrains:annotations:24.0.1")
}
}

Expand All @@ -53,7 +53,7 @@ configure(subprojects.filter {
apply(plugin = "io.papermc.paperweight.userdev")

dependencies {
paperDevBundle("1.19.3-R0.1-SNAPSHOT")
paperDevBundle("1.19.4-R0.1-SNAPSHOT")
}

tasks {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.oddlama.vane.core.enchantments;

import net.minecraft.world.item.enchantment.Enchantment;
import org.bukkit.craftbukkit.v1_19_R2.enchantments.CraftEnchantment;
import org.bukkit.craftbukkit.v1_19_R3.enchantments.CraftEnchantment;
import org.jetbrains.annotations.NotNull;

public class BukkitEnchantmentWrapper extends CraftEnchantment {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import static org.oddlama.vane.util.Nms.item_handle;

import org.bukkit.Keyed;
import org.bukkit.craftbukkit.v1_19_R2.inventory.CraftItemStack;
import org.bukkit.craftbukkit.v1_19_R3.inventory.CraftItemStack;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Item;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void add_item_override(

private String generate_pack_mcmeta() {
final var pack = new JSONObject();
pack.put("pack_format", 12);
pack.put("pack_format", 13);
pack.put("description", description);

final var root = new JSONObject();
Expand Down
4 changes: 2 additions & 2 deletions vane-core/src/main/java/org/oddlama/vane/util/ItemUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.OfflinePlayer;
import org.bukkit.craftbukkit.v1_19_R2.enchantments.CraftEnchantment;
import org.bukkit.craftbukkit.v1_19_R2.inventory.CraftItemStack;
import org.bukkit.craftbukkit.v1_19_R3.enchantments.CraftEnchantment;
import org.bukkit.craftbukkit.v1_19_R3.inventory.CraftItemStack;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
Expand Down
14 changes: 7 additions & 7 deletions vane-core/src/main/java/org/oddlama/vane/util/Nms.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.craftbukkit.v1_19_R2.CraftServer;
import org.bukkit.craftbukkit.v1_19_R2.CraftWorld;
import org.bukkit.craftbukkit.v1_19_R2.entity.CraftEntity;
import org.bukkit.craftbukkit.v1_19_R2.entity.CraftPlayer;
import org.bukkit.craftbukkit.v1_19_R2.inventory.CraftItemStack;
import org.bukkit.craftbukkit.v1_19_R2.util.CraftNamespacedKey;
import org.bukkit.craftbukkit.v1_19_R3.CraftServer;
import org.bukkit.craftbukkit.v1_19_R3.CraftWorld;
import org.bukkit.craftbukkit.v1_19_R3.entity.CraftEntity;
import org.bukkit.craftbukkit.v1_19_R3.entity.CraftPlayer;
import org.bukkit.craftbukkit.v1_19_R3.inventory.CraftItemStack;
import org.bukkit.craftbukkit.v1_19_R3.util.CraftNamespacedKey;
import org.bukkit.enchantments.EnchantmentTarget;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
Expand Down Expand Up @@ -140,7 +140,7 @@ public static void register_entity(
// https://papermc.io/forums/t/register-and-spawn-a-custom-entity-on-1-13-x/293,
// adapted for 1.18
// Get the datafixer
final var world_version = SharedConstants.getCurrentVersion().getWorldVersion();
final var world_version = SharedConstants.getCurrentVersion().getDataVersion().getVersion();
final var world_version_key = DataFixUtils.makeKey(world_version);
final var data_types = DataFixers
.getDataFixer()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import org.bukkit.NamespacedKey;
import org.bukkit.Sound;
import org.bukkit.SoundCategory;
import org.bukkit.craftbukkit.v1_19_R2.block.CraftBlock;
import org.bukkit.craftbukkit.v1_19_R3.block.CraftBlock;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.EventHandler;
Expand Down

0 comments on commit b842756

Please sign in to comment.