public TooltipBuilder addDrawSpeed() { float speed = ProjectileLauncherNBT.from(stack).drawSpeed; // convert speed per tick to seconds drawtime if (stack.getItem() instanceof BowCore) { speed = (float) ((BowCore) stack.getItem()).getDrawTime() / (20f * speed); } tips.add(BowMaterialStats.formatDrawspeed(speed)); return this; }
public TooltipBuilder addProjectileBonusDamage() { tips.add(BowMaterialStats.formatDamage(ProjectileLauncherNBT.from(stack).bonusDamage)); return this; }
public TooltipBuilder addRange() { tips.add(BowMaterialStats.formatRange(ProjectileLauncherNBT.from(stack).range)); return this; }