|
3 | 3 | import org.bukkit.Bukkit; |
4 | 4 | import org.bukkit.Location; |
5 | 5 | import org.bukkit.Material; |
| 6 | +import org.bukkit.Particle; |
| 7 | +import org.bukkit.attribute.Attribute; |
6 | 8 | import org.bukkit.enchantments.Enchantment; |
7 | 9 | import org.bukkit.entity.*; |
8 | 10 | import org.bukkit.inventory.ItemStack; |
@@ -291,7 +293,7 @@ public void fireEvokerFangs(Location target) { |
291 | 293 | sentinel.stats_evokerFangsSpawned++; |
292 | 294 | sentinel.faceLocation(target); |
293 | 295 | if (SentinelVersionCompat.v1_13) { |
294 | | - getLivingEntity().getWorld().spawnParticle(SentinelAPIBreakageFix.PARTICLE_SPELL, getLivingEntity().getEyeLocation().add(0, 1, 0), 10, 1, 1, 1); |
| 296 | + getLivingEntity().getWorld().spawnParticle((Particle) SentinelAPIBreakageFix.PARTICLE_SPELL, getLivingEntity().getEyeLocation().add(0, 1, 0), 10, 1, 1, 1); |
295 | 297 | } |
296 | 298 | Vector forward = getLivingEntity().getEyeLocation().getDirection().setY(0).normalize(); |
297 | 299 | Location start = getLivingEntity().getLocation().clone().add(forward.clone().multiply(Math.max(3, sentinel.firingMinimumRange()))); |
@@ -395,7 +397,7 @@ public void knockback(LivingEntity entity, float force) { |
395 | 397 | return; |
396 | 398 | } |
397 | 399 | if (SentinelVersionCompat.v1_12) { |
398 | | - float resist = (float) entity.getAttribute(SentinelAPIBreakageFix.ATTRIBUTE_GENERIC_KNOCKBACK_RESISTANCE).getValue(); |
| 400 | + float resist = (float) entity.getAttribute((Attribute) SentinelAPIBreakageFix.ATTRIBUTE_GENERIC_KNOCKBACK_RESISTANCE).getValue(); |
399 | 401 | if (resist > 0.0 && resist <= 1.0) { |
400 | 402 | force *= (1.0 - resist); |
401 | 403 | } |
|
0 commit comments