mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
port missing phantom crystal goals for generated api
This commit is contained in:
@@ -1,19 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
|
|
||||||
Date: Sun, 28 Jun 2020 21:50:55 -0500
|
|
||||||
Subject: [PATCH] Phantoms attracted to crystals and crystals shoot phantoms
|
|
||||||
|
|
||||||
|
|
||||||
diff --git a/com/destroystokyo/paper/entity/ai/VanillaGoal.java b/com/destroystokyo/paper/entity/ai/VanillaGoal.java
|
|
||||||
index 9b9eb256c4f17693e717e87e62a2e61b928f073a..33eed1c791eeaeb4eba538d32ce8516c5d5fc6c0 100644
|
|
||||||
--- a/com/destroystokyo/paper/entity/ai/VanillaGoal.java
|
|
||||||
+++ b/com/destroystokyo/paper/entity/ai/VanillaGoal.java
|
|
||||||
@@ -445,6 +445,8 @@ public interface VanillaGoal<T extends Mob> extends Goal<T> {
|
|
||||||
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"));
|
|
||||||
// Purpur end
|
|
||||||
|
|
||||||
private static <T extends Mob> GoalKey<T> create(final String key, final Class<T> type) {
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
--- a/generated/com/destroystokyo/paper/entity/ai/VanillaGoal.java
|
--- a/generated/com/destroystokyo/paper/entity/ai/VanillaGoal.java
|
||||||
+++ b/generated/com/destroystokyo/paper/entity/ai/VanillaGoal.java
|
+++ b/generated/com/destroystokyo/paper/entity/ai/VanillaGoal.java
|
||||||
@@ -441,6 +_,12 @@
|
@@ -441,6 +_,16 @@
|
||||||
|
|
||||||
GoalKey<Zombie> ZOMBIE_ATTACK_TURTLE_EGG = create("zombie_attack_turtle_egg", Zombie.class);
|
GoalKey<Zombie> ZOMBIE_ATTACK_TURTLE_EGG = create("zombie_attack_turtle_egg", Zombie.class);
|
||||||
|
|
||||||
@@ -9,6 +9,10 @@
|
|||||||
+ GoalKey<AbstractHorse> HORSE_HAS_RIDER = GoalKey.of(AbstractHorse.class, NamespacedKey.minecraft("horse_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<Llama> LLAMA_HAS_RIDER = GoalKey.of(Llama.class, NamespacedKey.minecraft("llama_has_rider"));
|
||||||
+ // Purpur end - Ridables
|
+ // Purpur end - Ridables
|
||||||
|
+ // Purpur start - Phantoms attracted to crystals and crystals shoot phantoms
|
||||||
|
+ GoalKey<Phantom> FIND_CRYSTAL = GoalKey.of(Phantom.class, NamespacedKey.minecraft("find_crystal"));
|
||||||
|
+ GoalKey<Phantom> ORBIT_CRYSTAL = GoalKey.of(Phantom.class, NamespacedKey.minecraft("orbit_crystal"));
|
||||||
|
+ // Purpur end - Phantoms attracted to crystals and crystals shoot phantoms
|
||||||
+
|
+
|
||||||
private static <T extends Mob> GoalKey<T> create(final String key, final Class<T> type) {
|
private static <T extends Mob> GoalKey<T> create(final String key, final Class<T> type) {
|
||||||
return GoalKey.of(type, NamespacedKey.minecraft(key));
|
return GoalKey.of(type, NamespacedKey.minecraft(key));
|
||||||
|
|||||||
Reference in New Issue
Block a user