mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 02:02:04 -07:00
Fix some NPE for EntityCompostItemEvent (#9169)
This commit is contained in:
@@ -12,14 +12,14 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
@@ -0,0 +0,0 @@
|
||||
+package io.papermc.paper.entity;
|
||||
+
|
||||
+import org.bukkit.Location;
|
||||
+import io.papermc.paper.math.Position;
|
||||
+import org.bukkit.entity.Entity;
|
||||
+import org.bukkit.entity.LivingEntity;
|
||||
+
|
||||
+/**
|
||||
+ * Represents what part of the entity should be used when determining where to face a location/entity.
|
||||
+ * Represents what part of the entity should be used when determining where to face a position/entity.
|
||||
+ *
|
||||
+ * @see org.bukkit.entity.Player#lookAt(Location, LookAnchor)
|
||||
+ * @see org.bukkit.entity.Player#lookAt(Position, LookAnchor)
|
||||
+ * @see org.bukkit.entity.Player#lookAt(Entity, LookAnchor, LookAnchor)
|
||||
+ */
|
||||
+@org.jetbrains.annotations.ApiStatus.Experimental
|
||||
@@ -194,10 +194,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ void lookAt(double x, double y, double z, @NotNull io.papermc.paper.entity.LookAnchor playerAnchor);
|
||||
+
|
||||
+ /**
|
||||
+ * Causes the player to look towards the given location.
|
||||
+ * Causes the player to look towards the given position.
|
||||
+ *
|
||||
+ * @param position Position to look at in the player's current world
|
||||
+ * @param playerAnchor What part of player should face the location
|
||||
+ * @param playerAnchor What part of the player should face the given position
|
||||
+ */
|
||||
+ @org.jetbrains.annotations.ApiStatus.Experimental
|
||||
+ default void lookAt(@NotNull io.papermc.paper.math.Position position, @NotNull io.papermc.paper.entity.LookAnchor playerAnchor) {
|
||||
|
Reference in New Issue
Block a user