Begin implementation of CheckStyle style checking
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user