forked from SteamWar/SteamWar
Improve WindchargeStopper
This commit is contained in:
+2
-2
@@ -26,8 +26,8 @@ import net.minecraft.world.entity.projectile.windcharge.WindCharge;
|
|||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
|
|
||||||
public class WindchargeStopper21 implements WindchargeStopper.IWindchargeStopper {
|
public class WindchargeStopper21 implements WindchargeStopper.IWindchargeStopper {
|
||||||
@Override
|
|
||||||
public void init() {
|
public WindchargeStopper21() {
|
||||||
new StateDependentTask(true, FightState.Running, this::run, 1, 1);
|
new StateDependentTask(true, FightState.Running, this::run, 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,8 +20,4 @@
|
|||||||
package de.steamwar.fightsystem.listener;
|
package de.steamwar.fightsystem.listener;
|
||||||
|
|
||||||
public class WindchargeStopper8 implements WindchargeStopper.IWindchargeStopper {
|
public class WindchargeStopper8 implements WindchargeStopper.IWindchargeStopper {
|
||||||
@Override
|
|
||||||
public void init() {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-4
@@ -25,13 +25,11 @@ import de.steamwar.linkage.Linked;
|
|||||||
|
|
||||||
@Linked
|
@Linked
|
||||||
public class WindchargeStopper {
|
public class WindchargeStopper {
|
||||||
private static final IWindchargeStopper impl = VersionDependent.getVersionImpl(FightSystem.getPlugin());
|
|
||||||
|
|
||||||
public WindchargeStopper() {
|
static {
|
||||||
impl.init();
|
VersionDependent.getVersionImpl(FightSystem.getPlugin());
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface IWindchargeStopper {
|
public interface IWindchargeStopper {
|
||||||
void init();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user