[ci skip] Cleanup events (#10202)
This commit is contained in:
@@ -19,6 +19,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+import org.bukkit.entity.LivingEntity;
|
||||
+import org.bukkit.entity.ThrownPotion;
|
||||
+import org.bukkit.event.entity.PotionSplashEvent;
|
||||
+import org.jetbrains.annotations.ApiStatus;
|
||||
+import org.jetbrains.annotations.NotNull;
|
||||
+import org.jetbrains.annotations.Unmodifiable;
|
||||
+
|
||||
@@ -27,9 +28,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * different entities in different ways.
|
||||
+ */
|
||||
+public class WaterBottleSplashEvent extends PotionSplashEvent {
|
||||
+
|
||||
+ private final @NotNull Set<LivingEntity> rehydrate;
|
||||
+ private final @NotNull Set<LivingEntity> extinguish;
|
||||
+
|
||||
+ @ApiStatus.Internal
|
||||
+ public WaterBottleSplashEvent(
|
||||
+ final @NotNull ThrownPotion potion,
|
||||
+ final @NotNull Map<LivingEntity, Double> affectedEntities,
|
||||
@@ -114,6 +117,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+
|
||||
+ /**
|
||||
+ * Doesn't make sense for this event as intensity doesn't vary.
|
||||
+ *
|
||||
+ * @return a confusing value
|
||||
+ * @deprecated check if {@link #getToDamage()} contains an entity
|
||||
+ */
|
||||
@@ -125,6 +129,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+
|
||||
+ /**
|
||||
+ * Doesn't make sense for this event as intensity doesn't vary.
|
||||
+ *
|
||||
+ * @deprecated use {@link #damageAsWaterSensitive(LivingEntity)}
|
||||
+ * or {@link #doNotDamageAsWaterSensitive(LivingEntity)} to change which entities are
|
||||
+ * damaged
|
||||
|
||||
Reference in New Issue
Block a user