mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 08:06:41 +01:00
ea855e2b46
Upstream has released updates that appears to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Developers!: You will need to clean up your work/Minecraft/1.13.2 folder for this Also, restore a patch that was dropped in the last upstream Bukkit Changes: 279eeab3 Fix command description not being set 96e2bb18 Remove debug print from SyntheticEventTest CraftBukkit Changes:d3ed1516
Fix dangerously threaded beacons217a293d
Don't relocate joptsimple to allow --help to work.1be05a21
Prepare for imminent Java 12 releasea49270b2
Mappings Update5259d80c
SPIGOT-4669: Fix PlayerTeleportEvent coordinates for relative teleports Spigot Changes: e6eb36f2 Rebuild patches
45 lines
1.6 KiB
Diff
45 lines
1.6 KiB
Diff
From 28375eab2740571d7b9ab080ff28d55cf88c05b0 Mon Sep 17 00:00:00 2001
|
|
From: BillyGalbreath <Blake.Galbreath@GMail.com>
|
|
Date: Fri, 12 Oct 2018 01:37:16 -0500
|
|
Subject: [PATCH] Here's Johnny!
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/Vindicator.java b/src/main/java/org/bukkit/entity/Vindicator.java
|
|
index b8ea68a8f..c5d9e76a6 100644
|
|
--- a/src/main/java/org/bukkit/entity/Vindicator.java
|
|
+++ b/src/main/java/org/bukkit/entity/Vindicator.java
|
|
@@ -3,4 +3,30 @@ package org.bukkit.entity;
|
|
/**
|
|
* Represents a Vindicator.
|
|
*/
|
|
-public interface Vindicator extends Illager { }
|
|
+public interface Vindicator extends Illager {
|
|
+ // Paper start
|
|
+ /**
|
|
+ * Check if this Vindicator is set to Johnny mode.
|
|
+ * <p>
|
|
+ * When in Johnny mode the Vindicator will be hostile to any kind of mob, except
|
|
+ * for evokers, ghasts, illusioners and other vindicators. It will even be hostile
|
|
+ * to vexes. All mobs, except for endermites, phantoms, guardians, slimes and
|
|
+ * magma cubes, will try to attack the vindicator in return.
|
|
+ *
|
|
+ * @return True if in Johnny mode
|
|
+ */
|
|
+ boolean isJohnny();
|
|
+
|
|
+ /**
|
|
+ * Set this Vindicator's Johnny mode.
|
|
+ * <p>
|
|
+ * When in Johnny mode the Vindicator will be hostile to any kind of mob, except
|
|
+ * for evokers, ghasts, illusioners and other vindicators. It will even be hostile
|
|
+ * to vexes. All mobs, except for endermites, phantoms, guardians, slimes and
|
|
+ * magma cubes, will try to attack the vindicator in return.
|
|
+ *
|
|
+ * @param johnny True to enable Johnny mode
|
|
+ */
|
|
+ void setJohnny(boolean johnny);
|
|
+ // Paper end
|
|
+}
|
|
--
|
|
2.21.0
|
|
|