Begin implementation of CheckStyle style checking
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -68,7 +68,7 @@ public class CraftProfileBanList implements org.bukkit.BanList {
|
||||
@Override
|
||||
public Set<org.bukkit.BanEntry> getBanEntries() {
|
||||
ImmutableSet.Builder<org.bukkit.BanEntry> builder = ImmutableSet.builder();
|
||||
|
||||
|
||||
for (JsonListEntry entry : list.getValues()) {
|
||||
GameProfile profile = (GameProfile) entry.getKey();
|
||||
builder.add(new CraftProfileBanEntry(profile, (GameProfileBanEntry) entry, list));
|
||||
|
||||
@@ -1327,7 +1327,7 @@ public final class CraftServer implements Server {
|
||||
|
||||
for (JsonListEntry entry : playerList.getProfileBans().getValues()) {
|
||||
result.add(getOfflinePlayer((GameProfile) entry.getKey()));
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -45,14 +45,14 @@ public class CraftWorldBorder implements WorldBorder {
|
||||
if (time > 0L) {
|
||||
this.handle.transitionSizeBetween(this.handle.getSize(), newSize, time * 1000L);
|
||||
} else {
|
||||
this.handle.setSize(newSize);
|
||||
this.handle.setSize(newSize);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Location getCenter() {
|
||||
double x = this.handle.getCenterX();
|
||||
double z = this.handle.getCenterZ();
|
||||
double x = this.handle.getCenterX();
|
||||
double z = this.handle.getCenterZ();
|
||||
|
||||
return new Location(this.world, x, 0, z);
|
||||
}
|
||||
@@ -63,7 +63,7 @@ public class CraftWorldBorder implements WorldBorder {
|
||||
x = Math.min(3.0E7D, Math.max(-3.0E7D, x));
|
||||
z = Math.min(3.0E7D, Math.max(-3.0E7D, z));
|
||||
|
||||
this.handle.setCenter(x, z);
|
||||
this.handle.setCenter(x, z);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -108,7 +108,7 @@ public class CraftWorldBorder implements WorldBorder {
|
||||
|
||||
@Override
|
||||
public void setWarningDistance(int distance) {
|
||||
this.handle.setWarningDistance(distance);
|
||||
this.handle.setWarningDistance(distance);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -273,4 +273,4 @@ public class CraftBlockState implements BlockState {
|
||||
throw new IllegalStateException("The blockState must be placed to call this method");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package org.bukkit.craftbukkit.block.data;
|
||||
|
||||
import org.bukkit.block.data.Waterlogged;
|
||||
import org.bukkit.craftbukkit.block.data.CraftBlockData;
|
||||
|
||||
public abstract class CraftWaterlogged extends CraftBlockData implements Waterlogged {
|
||||
|
||||
|
||||
@@ -61,11 +61,11 @@ public class CraftEnderDragon extends CraftComplexLivingEntity implements EnderD
|
||||
public void setPhase(Phase phase) {
|
||||
getHandle().getDragonControllerManager().setControllerPhase(getMinecraftPhase(phase));
|
||||
}
|
||||
|
||||
|
||||
public static Phase getBukkitPhase(DragonControllerPhase phase) {
|
||||
return Phase.values()[phase.b()];
|
||||
}
|
||||
|
||||
|
||||
public static DragonControllerPhase getMinecraftPhase(Phase phase) {
|
||||
return DragonControllerPhase.getById(phase.ordinal());
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ public class CraftRabbit extends CraftAnimals implements Rabbit {
|
||||
|
||||
@Override
|
||||
public Type getRabbitType() {
|
||||
int type = getHandle().getRabbitType();
|
||||
int type = getHandle().getRabbitType();
|
||||
return CraftMagicMapping.fromMagic(type);
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ public class CraftRabbit extends CraftAnimals implements Rabbit {
|
||||
entity.initializePathFinderGoals();
|
||||
}
|
||||
|
||||
entity.setRabbitType(CraftMagicMapping.toMagic(type));
|
||||
entity.setRabbitType(CraftMagicMapping.toMagic(type));
|
||||
}
|
||||
|
||||
private static class CraftMagicMapping {
|
||||
|
||||
@@ -208,7 +208,7 @@ public class CraftContainer extends Container {
|
||||
break;
|
||||
case SMOKER:
|
||||
delegate = new ContainerSmoker(windowId, bottom, top, new ContainerProperties(4));
|
||||
break;
|
||||
break;
|
||||
case LOOM:
|
||||
delegate = new ContainerLoom(windowId, bottom);
|
||||
break;
|
||||
|
||||
@@ -31,7 +31,7 @@ class CraftMetaCharge extends CraftMetaItem implements FireworkEffectMeta {
|
||||
|
||||
setEffect(SerializableMeta.getObject(FireworkEffect.class, map, EXPLOSION.BUKKIT, true));
|
||||
}
|
||||
|
||||
|
||||
CraftMetaCharge(NBTTagCompound tag) {
|
||||
super(tag);
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ class CraftMetaMap extends CraftMetaItem implements MapMeta {
|
||||
if (hasMapId()){
|
||||
tag.setInt(MAP_ID.NBT, getMapId());
|
||||
}
|
||||
|
||||
|
||||
if (hasScaling()) {
|
||||
tag.setBoolean(MAP_SCALING.NBT, isScaling());
|
||||
}
|
||||
|
||||
@@ -61,4 +61,4 @@ public class InventoryIterator implements ListIterator<ItemStack> {
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("Can't change the size of an inventory!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -305,7 +305,7 @@ public class CraftScheduler implements BukkitScheduler {
|
||||
return false;
|
||||
}
|
||||
if (task.isSync()) {
|
||||
return (task == currentTask);
|
||||
return (task == currentTask);
|
||||
}
|
||||
final CraftAsyncTask asyncTask = (CraftAsyncTask) task;
|
||||
synchronized (asyncTask.getWorkers()) {
|
||||
|
||||
@@ -11,8 +11,8 @@ import org.fusesource.jansi.Ansi;
|
||||
import org.fusesource.jansi.Ansi.Erase;
|
||||
|
||||
public class TerminalConsoleWriterThread extends Thread {
|
||||
final private ConsoleReader reader;
|
||||
final private OutputStream output;
|
||||
private final ConsoleReader reader;
|
||||
private final OutputStream output;
|
||||
|
||||
public TerminalConsoleWriterThread(OutputStream output, ConsoleReader reader) {
|
||||
this.output = output;
|
||||
|
||||
Reference in New Issue
Block a user