@@ -182,31 +182,26 @@ private static function registerBehavior() {
182
182
self ::$ init = true ;
183
183
self ::$ default = new DefaultItemDispenseBehavior ();
184
184
185
- /** @phpstan-ignore-next-line */
186
185
self ::$ behaviors [ItemIds::ARROW ] = new class extends ProjectileDispenseBehavior {
187
186
public function getEntity (Location $ location , Item $ item ): Entity {
188
187
return new Arrow ($ location , null , false );
189
188
}
190
189
};
191
- /** @phpstan-ignore-next-line */
192
190
self ::$ behaviors [ItemIds::EGG ] = new class extends ProjectileDispenseBehavior {
193
191
public function getEntity (Location $ location , Item $ item ): Entity {
194
192
return new Egg ($ location , null );
195
193
}
196
194
};
197
- /** @phpstan-ignore-next-line */
198
195
self ::$ behaviors [ItemIds::SNOWBALL ] = new class extends ProjectileDispenseBehavior {
199
196
public function getEntity (Location $ location , Item $ item ): Entity {
200
197
return new Snowball ($ location , null );
201
198
}
202
199
};
203
- /** @phpstan-ignore-next-line */
204
200
self ::$ behaviors [ItemIds::EXPERIENCE_BOTTLE ] = new class extends ProjectileDispenseBehavior {
205
201
public function getEntity (Location $ location , Item $ item ): Entity {
206
202
return new ExperienceBottle ($ location , null );
207
203
}
208
204
};
209
- /** @phpstan-ignore-next-line */
210
205
self ::$ behaviors [ItemIds::SPLASH_POTION ] = new class extends ProjectileDispenseBehavior {
211
206
public function getEntity (Location $ location , Item $ item ): Entity {
212
207
if (!$ item instanceof \pocketmine \item \SplashPotion) throw new InvalidArgumentException ("item was not SplashPotion " );
0 commit comments