12 /**
13 * Mob class.
14 */
21 /**
22 * @param x in pixels
23 * @param y in pixels
24 * @param width in pixels
25 * @param height in pixels
26 * @param dir Direction in which mob is looking
27 */
35 }
45 }
47 /**
48 * @return The X coordinate of a mob in blocks
49 */
52 }
54 /**
55 * @return The Y coordinate of mob's upper edge in blocks
56 */
59 }
61 /**
62 *
63 * @return The Y coordinate if mob's vertical center in blocks
64 */
67 }
69 /**
70 *
71 * @return The Y coordinate of mob's legs in blocks
72 */
75 }
79 }
83 }
85 /**
86 * @return Integer representing a direction in which mob is looking, where 0 is left and 1 is right
87 */
90 }
94 }
98 }
100 /**
101 * Switches direction in which mob is looking
102 */
105 }
109 }
113 }
117 }
119 /**
120 * Set's mob's dead variable to true and nothing else. It doesn't delete the
121 */
124 }
129 }
133 }
137 }
141 }
145 }
149 }
153 }
158 }
161 }
162 }
165 MOB,
166 SAND,
167 GRAVEL
168 }
171 LEFT,
172 RIGHT
173 }
180 }