10 /**
11 * Mob class.
12 */
33 }
35 /**
36 *
37 * @param x in pixels
38 * @param y in pixels
39 * @param width in pixels
40 * @param height in pixels
41 * @param dir integer representing a direction where 0 is left and 1 is right.
42 * You should use {@link #LEFT} and {@link #RIGHT} constants
43 */
52 }
54 /**
55 *
56 * @return The X coordinate of a mob in blocks
57 */
60 }
62 /**
63 *
64 * @return The Y coordinate of mob's upper edge in blocks
65 */
68 }
70 /**
71 *
72 * @return The Y coordinate if mob's vertical center in blocks
73 */
76 }
78 /**
79 *
80 * @return The Y coordinate of mob's legs in blocks
81 */
84 }
88 }
92 }
94 /**
95 *
96 * @return Integer representing a direction in which mob is looking, where 0 is left and 1 is right
97 */
100 }
104 }
108 }
110 /**
111 * Switches direction in which mob is looking
112 */
115 }
119 }
123 }
125 /**
126 * Set's mob's dead variable to true and nothing else. It doesn't delete the mob.
127 */
130 }
132 /**
133 *
134 * @return A {@link Rectangle} with mob's coordinates and size
135 */
138 }
142 }
146 }
150 }
154 }
158 }
162 }
166 }
170 }
178 /**
179 *
180 * @return 0 - if regular mob. <br>
181 * 10 - if instance of {@link FallingSand} <br> 11 - if instance of {@link FallingGravel}
182 */
184 }