bcab5867bc4e8ee9186543eebd206e4733437b86
9 /**
10 * Mob class.
11 */
30 /**
31 *
32 * @param x in pixels
33 * @param y in pixels
34 * @param width in pixels
35 * @param height in pixels
36 * @param dir integer representing a direction where 0 is left and 1 is right.
37 * You should use {@link #LEFT} and {@link #RIGHT} constants
38 */
48 }
50 /**
51 *
52 * @return The X coordinate of a mob in blocks
53 */
56 }
58 /**
59 *
60 * @return The Y coordinate of mob's upper edge in blocks
61 */
64 }
66 /**
67 *
68 * @return The Y coordinate if mob's vertical center in blocks
69 */
72 }
74 /**
75 *
76 * @return The Y coordinate of mob's legs in blocks
77 */
80 }
84 }
88 }
90 /**
91 *
92 * @return Integer representing a direction in which mob is looking, where 0 is left and 1 is right
93 */
96 }
100 }
104 }
106 /**
107 * Switches direction in which mob is looking
108 */
111 }
115 }
117 /**
118 * Set's mob's dead variable to true and nothing else. It doesn't delete the mob.
119 */
122 }
124 /**
125 *
126 * @return A {@link Rectangle} with mob's coordinates and size
127 */
130 }
138 /**
139 *
140 * @return 0 - if regular mob. <br>
141 * 10 - if instance of {@link FallingSand} <br> 11 - if instance of {@link FallingGravel}
142 */
144 }