9 /**
10 * Mob class.
11 */
31 /**
32 *
33 * @param x in pixels
34 * @param y in pixels
35 * @param width in pixels
36 * @param height in pixels
37 * @param dir integer representing a direction where 0 is left and 1 is right.
38 * You should use {@link #LEFT} and {@link #RIGHT} constants
39 */
49 }
51 /**
52 *
53 * @return The X coordinate of a mob in blocks
54 */
57 }
59 /**
60 *
61 * @return The Y coordinate of mob's upper edge in blocks
62 */
65 }
67 /**
68 *
69 * @return The Y coordinate if mob's vertical center in blocks
70 */
73 }
75 /**
76 *
77 * @return The Y coordinate of mob's legs in blocks
78 */
81 }
85 }
89 }
91 /**
92 *
93 * @return Integer representing a direction in which mob is looking, where 0 is left and 1 is right
94 */
97 }
101 }
105 }
107 /**
108 * Switches direction in which mob is looking
109 */
112 }
116 }
118 /**
119 * Set's mob's dead variable to true and nothing else. It doesn't delete the mob.
120 */
123 }
125 /**
126 *
127 * @return A {@link Rectangle} with mob's coordinates and size
128 */
131 }
139 /**
140 *
141 * @return 0 - if regular mob. <br>
142 * 10 - if instance of {@link FallingSand} <br> 11 - if instance of {@link FallingGravel}
143 */
145 }