mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-02 11:22:01 +01:00
Assorted whitespace fixes
By: md_5 <git@md-5.net>
This commit is contained in:
parent
da073e8e66
commit
e3d4acc303
@ -54,7 +54,6 @@
|
||||
<groupId>com.googlecode.json-simple</groupId>
|
||||
<artifactId>json-simple</artifactId>
|
||||
<version>1.1.1</version>
|
||||
<type>jar</type>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<!-- bundled with Minecraft, should be kept in sync -->
|
||||
|
@ -3,7 +3,6 @@ package org.bukkit.configuration.file;
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.Reader;
|
||||
import java.util.Map;
|
||||
import java.util.logging.Level;
|
||||
|
@ -35,8 +35,7 @@ public class ConversationFactory {
|
||||
*
|
||||
* @param plugin The plugin that owns the factory.
|
||||
*/
|
||||
public ConversationFactory(Plugin plugin)
|
||||
{
|
||||
public ConversationFactory(Plugin plugin) {
|
||||
this.plugin = plugin;
|
||||
isModal = true;
|
||||
localEchoEnabled = true;
|
||||
@ -58,8 +57,7 @@ public class ConversationFactory {
|
||||
* @param modal The modality of all conversations to be created.
|
||||
* @return This object.
|
||||
*/
|
||||
public ConversationFactory withModality(boolean modal)
|
||||
{
|
||||
public ConversationFactory withModality(boolean modal) {
|
||||
isModal = modal;
|
||||
return this;
|
||||
}
|
||||
@ -141,7 +139,6 @@ public class ConversationFactory {
|
||||
return withConversationCanceller(new ExactMatchConversationCanceller(escapeSequence));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Adds a {@link ConversationCanceller} to constructed conversations.
|
||||
*
|
||||
|
@ -1,6 +1,5 @@
|
||||
package org.bukkit.conversations;
|
||||
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
|
||||
/**
|
||||
|
@ -1,7 +1,5 @@
|
||||
package org.bukkit.conversations;
|
||||
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
/**
|
||||
* NullConversationPrefix is a {@link ConversationPrefix} implementation that
|
||||
* displays nothing in front of conversation output.
|
||||
|
@ -30,8 +30,7 @@ public abstract class NumericPrompt extends ValidatingPrompt{
|
||||
|
||||
@Override
|
||||
protected Prompt acceptValidatedInput(ConversationContext context, String input) {
|
||||
try
|
||||
{
|
||||
try {
|
||||
return acceptValidatedInput(context, NumberUtils.createNumber(input));
|
||||
} catch (NumberFormatException e) {
|
||||
return acceptValidatedInput(context, NumberUtils.INTEGER_ZERO);
|
||||
|
@ -18,7 +18,6 @@ public abstract class PlayerNamePrompt extends ValidatingPrompt{
|
||||
@Override
|
||||
protected boolean isInputValid(ConversationContext context, String input) {
|
||||
return plugin.getServer().getPlayer(input) != null;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -237,8 +237,7 @@ public class Mushroom extends MaterialData {
|
||||
case DOWN:
|
||||
if (painted) {
|
||||
data = MushroomBlockTexture.ALL_CAP.getData();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
data = MushroomBlockTexture.ALL_PORES.getData();
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user