Пример #1
0
 @Override
 protected void entityInit() {
   super.entityInit();
   dataManager.register(BOUNCES, 0);
   dataManager.register(FLARE, false);
   dataManager.register(RETURN_TO, -1);
 }
Пример #2
0
 @Override
 protected void entityInit() {
   super.entityInit();
   setSize(0.25F, 0.25F);
   dataWatcher.addObject(THROWER_INDEX, "");
   dataWatcher.addObject(WHIP_TYPE_INDEX, WhipType.WHIP_SHORT.ordinal());
   dataWatcher.addObject(IN_GROUND_INDEX, (byte) 0);
   dataWatcher.addObject(HIT_POS_X, 0.0F);
   dataWatcher.addObject(HIT_POS_Y, 0.0F);
   dataWatcher.addObject(HIT_POS_Z, 0.0F);
 }