Commits
md_5 authored 0aeac440c05
50 50 | * |
51 51 | * @param transparent HashSet containing all transparent block Materials (set to |
52 52 | * null for only air) |
53 53 | * @param maxDistance this is the maximum distance to scan (may be limited |
54 54 | * by server by at least 100 blocks, no less) |
55 55 | * @return list containing all blocks along the living entity's line of |
56 56 | * sight |
57 57 | */ |
58 58 | public List<Block> getLineOfSight(Set<Material> transparent, int maxDistance); |
59 59 | |
60 - | /** |
61 - | * Gets the block that the living entity has targeted. |
62 - | * |
63 - | * @param transparent HashSet containing all transparent block IDs (set to |
64 - | * null for only air) |
65 - | * @param maxDistance this is the maximum distance to scan (may be limited |
66 - | * by server by at least 100 blocks, no less) |
67 - | * @return block that the living entity has targeted |
68 - | * @deprecated Magic value |
69 - | */ |
70 - | |
71 - | public Block getTargetBlock(HashSet<Byte> transparent, int maxDistance); |
72 - | |
73 60 | /** |
74 61 | * Gets the block that the living entity has targeted. |
75 62 | * |
76 63 | * @param transparent HashSet containing all transparent block Materials (set to |
77 64 | * null for only air) |
78 65 | * @param maxDistance this is the maximum distance to scan (may be limited |
79 66 | * by server by at least 100 blocks, no less) |
80 67 | * @return block that the living entity has targeted |
81 68 | */ |
82 69 | public Block getTargetBlock(Set<Material> transparent, int maxDistance); |
83 70 | |
84 - | /** |
85 - | * Gets the last two blocks along the living entity's line of sight. |
86 - | * <p> |
87 - | * The target block will be the last block in the list. |
88 - | * |
89 - | * @param transparent HashSet containing all transparent block IDs (set to |
90 - | * null for only air) |
91 - | * @param maxDistance this is the maximum distance to scan. This may be |
92 - | * further limited by the server, but never to less than 100 blocks |
93 - | * @return list containing the last 2 blocks along the living entity's |
94 - | * line of sight |
95 - | * @deprecated Magic value |
96 - | */ |
97 - | |
98 - | public List<Block> getLastTwoTargetBlocks(HashSet<Byte> transparent, int maxDistance); |
99 - | |
100 71 | /** |
101 72 | * Gets the last two blocks along the living entity's line of sight. |
102 73 | * <p> |
103 74 | * The target block will be the last block in the list. |
104 75 | * |
105 76 | * @param transparent HashSet containing all transparent block Materials (set to |
106 77 | * null for only air) |
107 78 | * @param maxDistance this is the maximum distance to scan. This may be |
108 79 | * further limited by the server, but never to less than 100 blocks |
109 80 | * @return list containing the last 2 blocks along the living entity's |