9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-22 08:29:28 +00:00
Files
Leaf/patches/generated-api/0001-Purpur-generated-api-Changes.patch
Dreeam 57b84ca9f2 Updated Upstream (Purpur/Leaves)
Upstream has released updates that appear to apply and compile correctly

Purpur Changes:
PurpurMC/Purpur@7f490a6 Updated Upstream (Paper)
PurpurMC/Purpur@4f2fe31 Updated Upstream (Paper)
PurpurMC/Purpur@4b57bed Updated Upstream (Paper)
PurpurMC/Purpur@d49ca07 Updated Upstream (Paper)

Leaves Changes:
LeavesMC/Leaves@c19e742 Fix extra yggdrasil
LeavesMC/Leaves@8be1ec2 1.21.1
LeavesMC/Leaves@8019141 Old BlockEntity behaviour
LeavesMC/Leaves@a58f059 Better config command
LeavesMC/Leaves@1a110f5 Fix #281
LeavesMC/Leaves@a8e403d Remove some performance
LeavesMC/Leaves@f552216 Update Paper
LeavesMC/Leaves@202c986 [release-skip] Fix Maven publish
LeavesMC/Leaves@e199edf Fix Spigot EndPlatform destroy (#313)
LeavesMC/Leaves@595afb8 Fakeplayer API update
LeavesMC/Leaves@39440b4 Update bot API (#318)
LeavesMC/Leaves@76d5ab8 Try fix (#309)
LeavesMC/Leaves@9338453 Fix crash cause by fake player and phantom spawner. (#331)
LeavesMC/Leaves@3436062 Fix bytebuf api, fix #334 (#335)
LeavesMC/Leaves@c33b547 New FakePlayer (#337)
LeavesMC/Leaves@615efda Update Paper
LeavesMC/Leaves@56d306c Fix Stackable ShulkerBoxes (#329)
LeavesMC/Leaves@23c47a3 Enhance bot api, fix somethings (#341)
LeavesMC/Leaves@bff6bbd Update Paper
LeavesMC/Leaves@dd487df Fix fakeplayer use action (#345)
LeavesMC/Leaves@2e311f0 Update Paper
LeavesMC/Leaves@b8cd2ec Fix CommandUtil(#348) (#349)
LeavesMC/Leaves@95e6661 Make lever and cocoa wrench-able by shear (#351)
LeavesMC/Leaves@6c5cc79 Fix #353
LeavesMC/Leaves@b33c46c Update Paper
LeavesMC/Leaves@f830919 Update Paper
LeavesMC/Leaves@9d90760 Revert raid changes (#361)
LeavesMC/Leaves@d2b7fab Fix Incorrect Collision Behavior for Block Shape (fix #344) (#363)
LeavesMC/Leaves@6a9d61b Allow anvil destroy item entities and disable vault blacklist (#364)
LeavesMC/Leaves@e745ddd Update Paper
LeavesMC/Leaves@ab75141 Fix fakeplayer rotation action (#365)
LeavesMC/Leaves@423df96 Fix bot changing dimension (#366)
2024-10-30 11:22:31 -04:00

34 lines
2.0 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Github Actions <no-reply@github.com>
Date: Fri, 21 Jun 2024 03:34:00 +0000
Subject: [PATCH] Purpur generated-api Changes
Original license: MIT
Original project: https://github.com/PurpurMC/Purpur
Commit: d49ca07e0098cd9e923d43b7fe67fb7e2a8eb511
diff --git a/com/destroystokyo/paper/entity/ai/VanillaGoal.java b/com/destroystokyo/paper/entity/ai/VanillaGoal.java
index 02411466bdcf4ff731f01ccebb2c99942e0db878..2718c0e5061838b01881bb231c53f4da348adce3 100644
--- a/com/destroystokyo/paper/entity/ai/VanillaGoal.java
+++ b/com/destroystokyo/paper/entity/ai/VanillaGoal.java
@@ -436,6 +436,18 @@ public interface VanillaGoal<T extends Mob> extends Goal<T> {
GoalKey<Zombie> ZOMBIE_ATTACK_TURTLE_EGG = create("zombie_attack_turtle_egg", Zombie.class);
+ // Purpur start
+ GoalKey<Mob> MOB_HAS_RIDER = GoalKey.of(Mob.class, NamespacedKey.minecraft("has_rider"));
+ GoalKey<AbstractHorse> HORSE_HAS_RIDER = GoalKey.of(AbstractHorse.class, NamespacedKey.minecraft("horse_has_rider"));
+ GoalKey<Llama> LLAMA_HAS_RIDER = GoalKey.of(Llama.class, NamespacedKey.minecraft("llama_has_rider"));
+ GoalKey<Phantom> FIND_CRYSTAL = GoalKey.of(Phantom.class, NamespacedKey.minecraft("find_crystal"));
+ GoalKey<Phantom> ORBIT_CRYSTAL = GoalKey.of(Phantom.class, NamespacedKey.minecraft("orbit_crystal"));
+ GoalKey<Drowned> DROWNED_ATTACK_VILLAGER = GoalKey.of(Drowned.class, NamespacedKey.minecraft("drowned_attack_villager"));
+ GoalKey<Zombie> ZOMBIE_ATTACK_VILLAGER = GoalKey.of(Zombie.class, NamespacedKey.minecraft("zombie_attack_villager"));
+ GoalKey<Wolf> AVOID_RABID_WOLF = GoalKey.of(Wolf.class, NamespacedKey.minecraft("avoid_rabid_wolf"));
+ GoalKey<IronGolem> RECEIVE_FLOWER = GoalKey.of(IronGolem.class, NamespacedKey.minecraft("receive_flower"));
+ // Purpur end
+
private static <T extends Mob> @NonNull GoalKey<T> create(final @NonNull String key,
final @NonNull Class<T> type) {
return GoalKey.of(type, NamespacedKey.minecraft(key));