Commits
md_5 authored a6a9d2a41f8
1 1 | package org.bukkit.entity; |
2 2 | |
3 3 | import org.bukkit.block.data.BlockData; |
4 4 | import org.bukkit.material.MaterialData; |
5 - | import org.jetbrains.annotations.ApiStatus; |
6 5 | import org.jetbrains.annotations.NotNull; |
7 6 | import org.jetbrains.annotations.Nullable; |
8 7 | |
9 8 | /** |
10 9 | * Represents an Enderman. |
11 10 | */ |
12 11 | public interface Enderman extends Monster { |
13 12 | |
14 13 | /** |
15 14 | * Gets the id and data of the block that the Enderman is carrying. |
46 45 | * <p> |
47 46 | * If the randomly selected point is in the ground, the point is moved 1 block |
48 47 | * down until air is found or until it goes under |
49 48 | * {@link org.bukkit.World#getMinHeight()}. |
50 49 | * <p> |
51 50 | * This method will return false if this Enderman is not alive, or if the |
52 51 | * teleport location was obstructed, or if the teleport location is in water. |
53 52 | * |
54 53 | * @return true if the teleport succeeded. |
55 54 | */ |
56 - | Experimental | .
57 55 | public boolean teleport(); |
58 56 | |
59 57 | /** |
60 58 | * Randomly teleports the Enderman towards the given <code>entity</code>. |
61 59 | * <p> |
62 60 | * The point is selected by drawing a vector between this enderman and the |
63 61 | * given <code>entity</code>. That vector's length is set to 16 blocks. |
64 62 | * That point is then moved within a 8x8x8 cuboid region. If the randomly |
65 63 | * selected point is in the ground, the point is moved 1 block down until |
66 64 | * air is found or until it goes under |
67 65 | * {@link org.bukkit.World#getMinHeight()}. |
68 66 | * <p> |
69 67 | * This method will return false if this Enderman is not alive, or if the |
70 68 | * teleport location was obstructed, or if the teleport location is in water. |
71 69 | * |
72 70 | * @param entity The entity to teleport towards. |
73 71 | * @return true if the teleport succeeded. |
74 72 | */ |
75 - | Experimental | .
76 73 | public boolean teleportTowards( Entity entity); |
77 74 | } |