mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-01 14:38:55 +00:00
style: reformat codebase
This commit is contained in:
25 files changed
+2362
-2440
No files matched your search
@@ -2,12 +2,7 @@ package com.github.alathra.siegeengines.projectile;
|
||||
|
||||
import com.github.alathra.siegeengines.SiegeEngines;
|
||||
import com.github.alathra.siegeengines.util.SiegeEnginesUtil;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Particle;
|
||||
import org.bukkit.Sound;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.*;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.ThrownPotion;
|
||||
@@ -16,7 +11,7 @@ import org.bukkit.inventory.meta.PotionMeta;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
public class PotionProjectile extends SiegeEngineProjectile {
|
||||
|
||||
|
||||
public int projectileCount = 3;
|
||||
public Boolean delayedFire = false;
|
||||
public int delayTime = 6;
|
||||
@@ -26,8 +21,8 @@ public class PotionProjectile extends SiegeEngineProjectile {
|
||||
public float velocityFactor = 1.0f;
|
||||
|
||||
public PotionProjectile(ItemStack ammunitionItem) {
|
||||
super(ProjectileType.POTION, ammunitionItem);
|
||||
}
|
||||
super(ProjectileType.POTION, ammunitionItem);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void Shoot(Entity player, Entity entity, Location loc, Float velocity) {
|
||||
@@ -39,7 +34,7 @@ public class PotionProjectile extends SiegeEngineProjectile {
|
||||
Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(SiegeEngines.getInstance(), () -> {
|
||||
|
||||
CreateEntity(entity, loc, velocity);
|
||||
}, (long) baseDelay);
|
||||
}, baseDelay);
|
||||
} else {
|
||||
CreateEntity(entity, loc, velocity);
|
||||
}
|
||||
@@ -60,7 +55,7 @@ public class PotionProjectile extends SiegeEngineProjectile {
|
||||
ItemStack itemStack = this.getAmmuinitionItem();
|
||||
PotionMeta potionMeta = (PotionMeta) itemStack.getItemMeta();
|
||||
System.out.println(potionMeta.toString());
|
||||
System.out.println(itemStack.toString());
|
||||
System.out.println(itemStack);
|
||||
potionMeta.getBasePotionData();
|
||||
itemStack.setItemMeta(potionMeta);
|
||||
ThrownPotion potion = (ThrownPotion) arrow;
|
||||
@@ -73,7 +68,7 @@ public class PotionProjectile extends SiegeEngineProjectile {
|
||||
return new Vector(SiegeEngines.random.nextFloat() * (inaccuracy - (inaccuracy * -1)) + (inaccuracy * -1), SiegeEngines.random.nextFloat() * (inaccuracy - (inaccuracy * -1)) + (inaccuracy * -1), SiegeEngines.random.nextFloat() * (inaccuracy - (inaccuracy * -1)) + (inaccuracy * -1));
|
||||
}
|
||||
|
||||
public ProjectileType getProjectileType() {
|
||||
return projectileType;
|
||||
}
|
||||
public ProjectileType getProjectileType() {
|
||||
return projectileType;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user