Remove overloading WorldCore#getSpawner(CreatureSpawner)

This commit is contained in:
Christian Koop 2022-08-28 19:19:48 +02:00
parent b07f67e0d6
commit 1cd96b10c5
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
22 changed files with 1 additions and 102 deletions

View File

@ -471,7 +471,7 @@ public class ItemUtils {
/** /**
* Quickly check to see if the two items use the same material. <br /> * Quickly check to see if the two items use the same material. <br />
* NOTE: Does not check meta data; only checks the item material. * NOTE: Does not check metadata; only checks the item material.
* *
* @param is1 first item to compare * @param is1 first item to compare
* @param is2 item to compare against * @param is2 item to compare against

View File

@ -11,8 +11,6 @@ import org.jetbrains.annotations.NotNull;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
public interface WorldCore { public interface WorldCore {
SSpawner getSpawner(CreatureSpawner spawner);
SSpawner getSpawner(Location location); SSpawner getSpawner(Location location);
SItemStack getItemStack(ItemStack item); SItemStack getItemStack(ItemStack item);

View File

@ -26,11 +26,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Objects; import java.util.Objects;
public class WorldCoreImpl implements WorldCore { public class WorldCoreImpl implements WorldCore {
@Override
public SSpawner getSpawner(CreatureSpawner spawner) {
return new SSpawnerImpl(spawner.getLocation());
}
@Override @Override
public SSpawner getSpawner(Location location) { public SSpawner getSpawner(Location location) {
return new SSpawnerImpl(location); return new SSpawnerImpl(location);

View File

@ -26,11 +26,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Objects; import java.util.Objects;
public class WorldCoreImpl implements WorldCore { public class WorldCoreImpl implements WorldCore {
@Override
public SSpawner getSpawner(CreatureSpawner spawner) {
return new SSpawnerImpl(spawner.getLocation());
}
@Override @Override
public SSpawner getSpawner(Location location) { public SSpawner getSpawner(Location location) {
return new SSpawnerImpl(location); return new SSpawnerImpl(location);

View File

@ -26,11 +26,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Objects; import java.util.Objects;
public class WorldCoreImpl implements WorldCore { public class WorldCoreImpl implements WorldCore {
@Override
public SSpawner getSpawner(CreatureSpawner spawner) {
return new SSpawnerImpl(spawner.getLocation());
}
@Override @Override
public SSpawner getSpawner(Location location) { public SSpawner getSpawner(Location location) {
return new SSpawnerImpl(location); return new SSpawnerImpl(location);

View File

@ -27,11 +27,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Objects; import java.util.Objects;
public class WorldCoreImpl implements WorldCore { public class WorldCoreImpl implements WorldCore {
@Override
public SSpawner getSpawner(CreatureSpawner spawner) {
return new SSpawnerImpl(spawner.getLocation());
}
@Override @Override
public SSpawner getSpawner(Location location) { public SSpawner getSpawner(Location location) {
return new SSpawnerImpl(location); return new SSpawnerImpl(location);

View File

@ -27,11 +27,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Objects; import java.util.Objects;
public class WorldCoreImpl implements WorldCore { public class WorldCoreImpl implements WorldCore {
@Override
public SSpawner getSpawner(CreatureSpawner spawner) {
return new SSpawnerImpl(spawner.getLocation());
}
@Override @Override
public SSpawner getSpawner(Location location) { public SSpawner getSpawner(Location location) {
return new SSpawnerImpl(location); return new SSpawnerImpl(location);

View File

@ -29,11 +29,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Objects; import java.util.Objects;
public class WorldCoreImpl implements WorldCore { public class WorldCoreImpl implements WorldCore {
@Override
public SSpawner getSpawner(CreatureSpawner spawner) {
return new SSpawnerImpl(spawner.getLocation());
}
@Override @Override
public SSpawner getSpawner(Location location) { public SSpawner getSpawner(Location location) {
return new SSpawnerImpl(location); return new SSpawnerImpl(location);

View File

@ -29,11 +29,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Objects; import java.util.Objects;
public class WorldCoreImpl implements WorldCore { public class WorldCoreImpl implements WorldCore {
@Override
public SSpawner getSpawner(CreatureSpawner spawner) {
return new SSpawnerImpl(spawner.getLocation());
}
@Override @Override
public SSpawner getSpawner(Location location) { public SSpawner getSpawner(Location location) {
return new SSpawnerImpl(location); return new SSpawnerImpl(location);

View File

@ -29,11 +29,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Objects; import java.util.Objects;
public class WorldCoreImpl implements WorldCore { public class WorldCoreImpl implements WorldCore {
@Override
public SSpawner getSpawner(CreatureSpawner spawner) {
return new SSpawnerImpl(spawner.getLocation());
}
@Override @Override
public SSpawner getSpawner(Location location) { public SSpawner getSpawner(Location location) {
return new SSpawnerImpl(location); return new SSpawnerImpl(location);

View File

@ -29,11 +29,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Objects; import java.util.Objects;
public class WorldCoreImpl implements WorldCore { public class WorldCoreImpl implements WorldCore {
@Override
public SSpawner getSpawner(CreatureSpawner spawner) {
return new SSpawnerImpl(spawner.getLocation());
}
@Override @Override
public SSpawner getSpawner(Location location) { public SSpawner getSpawner(Location location) {
return new SSpawnerImpl(location); return new SSpawnerImpl(location);

View File

@ -29,11 +29,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Objects; import java.util.Objects;
public class WorldCoreImpl implements WorldCore { public class WorldCoreImpl implements WorldCore {
@Override
public SSpawner getSpawner(CreatureSpawner spawner) {
return new SSpawnerImpl(spawner.getLocation());
}
@Override @Override
public SSpawner getSpawner(Location location) { public SSpawner getSpawner(Location location) {
return new SSpawnerImpl(location); return new SSpawnerImpl(location);

View File

@ -29,11 +29,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Objects; import java.util.Objects;
public class WorldCoreImpl implements WorldCore { public class WorldCoreImpl implements WorldCore {
@Override
public SSpawner getSpawner(CreatureSpawner spawner) {
return new SSpawnerImpl(spawner.getLocation());
}
@Override @Override
public SSpawner getSpawner(Location location) { public SSpawner getSpawner(Location location) {
return new SSpawnerImpl(location); return new SSpawnerImpl(location);

View File

@ -29,11 +29,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Objects; import java.util.Objects;
public class WorldCoreImpl implements WorldCore { public class WorldCoreImpl implements WorldCore {
@Override
public SSpawner getSpawner(CreatureSpawner spawner) {
return new SSpawnerImpl(spawner.getLocation());
}
@Override @Override
public SSpawner getSpawner(Location location) { public SSpawner getSpawner(Location location) {
return new SSpawnerImpl(location); return new SSpawnerImpl(location);

View File

@ -29,11 +29,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Objects; import java.util.Objects;
public class WorldCoreImpl implements WorldCore { public class WorldCoreImpl implements WorldCore {
@Override
public SSpawner getSpawner(CreatureSpawner spawner) {
return new SSpawnerImpl(spawner.getLocation());
}
@Override @Override
public SSpawner getSpawner(Location location) { public SSpawner getSpawner(Location location) {
return new SSpawnerImpl(location); return new SSpawnerImpl(location);

View File

@ -29,11 +29,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Objects; import java.util.Objects;
public class WorldCoreImpl implements WorldCore { public class WorldCoreImpl implements WorldCore {
@Override
public SSpawner getSpawner(CreatureSpawner spawner) {
return new SSpawnerImpl(spawner.getLocation());
}
@Override @Override
public SSpawner getSpawner(Location location) { public SSpawner getSpawner(Location location) {
return new SSpawnerImpl(location); return new SSpawnerImpl(location);

View File

@ -29,11 +29,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Objects; import java.util.Objects;
public class WorldCoreImpl implements WorldCore { public class WorldCoreImpl implements WorldCore {
@Override
public SSpawner getSpawner(CreatureSpawner spawner) {
return new SSpawnerImpl(spawner.getLocation());
}
@Override @Override
public SSpawner getSpawner(Location location) { public SSpawner getSpawner(Location location) {
return new SSpawnerImpl(location); return new SSpawnerImpl(location);

View File

@ -26,11 +26,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Objects; import java.util.Objects;
public class WorldCoreImpl implements WorldCore { public class WorldCoreImpl implements WorldCore {
@Override
public SSpawner getSpawner(CreatureSpawner spawner) {
return new SSpawnerImpl(spawner.getLocation());
}
@Override @Override
public SSpawner getSpawner(Location location) { public SSpawner getSpawner(Location location) {
return new SSpawnerImpl(location); return new SSpawnerImpl(location);

View File

@ -26,11 +26,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Objects; import java.util.Objects;
public class WorldCoreImpl implements WorldCore { public class WorldCoreImpl implements WorldCore {
@Override
public SSpawner getSpawner(CreatureSpawner spawner) {
return new SSpawnerImpl(spawner.getLocation());
}
@Override @Override
public SSpawner getSpawner(Location location) { public SSpawner getSpawner(Location location) {
return new SSpawnerImpl(location); return new SSpawnerImpl(location);

View File

@ -26,11 +26,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Objects; import java.util.Objects;
public class WorldCoreImpl implements WorldCore { public class WorldCoreImpl implements WorldCore {
@Override
public SSpawner getSpawner(CreatureSpawner spawner) {
return new SSpawnerImpl(spawner.getLocation());
}
@Override @Override
public SSpawner getSpawner(Location location) { public SSpawner getSpawner(Location location) {
return new SSpawnerImpl(location); return new SSpawnerImpl(location);

View File

@ -26,11 +26,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Objects; import java.util.Objects;
public class WorldCoreImpl implements WorldCore { public class WorldCoreImpl implements WorldCore {
@Override
public SSpawner getSpawner(CreatureSpawner spawner) {
return new SSpawnerImpl(spawner.getLocation());
}
@Override @Override
public SSpawner getSpawner(Location location) { public SSpawner getSpawner(Location location) {
return new SSpawnerImpl(location); return new SSpawnerImpl(location);

View File

@ -26,10 +26,6 @@ import org.jetbrains.annotations.NotNull;
import java.util.Objects; import java.util.Objects;
public class WorldCoreImpl implements WorldCore { public class WorldCoreImpl implements WorldCore {
@Override
public SSpawner getSpawner(CreatureSpawner spawner) {
return new SSpawnerImpl(spawner.getLocation());
}
@Override @Override
public SSpawner getSpawner(Location location) { public SSpawner getSpawner(Location location) {