Skip to content

Commit

Permalink
Auto optimize code.
Browse files Browse the repository at this point in the history
  • Loading branch information
gravityfox committed Sep 14, 2016
1 parent 3cf1720 commit 880ce53
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import io.netty.channel.ChannelInboundHandlerAdapter;
import net.foxdenstudio.sponge.foxcore.common.network.IClientPacket;
import net.foxdenstudio.sponge.foxcore.common.network.IServerPacketListener;
import net.foxdenstudio.sponge.foxcore.plugin.FCServerNetworkManager;
import net.minecraft.network.PacketBuffer;
import net.minecraftforge.fml.common.network.ByteBufUtils;
import net.minecraftforge.fml.common.network.FMLEmbeddedChannel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@
import net.foxdenstudio.sponge.foxcore.mod.render.RenderHandler;
import net.minecraft.client.Minecraft;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.FMLCommonHandler;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLLoadCompleteEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package net.foxdenstudio.sponge.foxcore.plugin.command;

import com.google.common.collect.ImmutableList;
import net.foxdenstudio.sponge.foxcore.common.util.CacheMap;
import net.foxdenstudio.sponge.foxcore.plugin.FCConfigManager;
import net.foxdenstudio.sponge.foxcore.plugin.command.util.AdvCmdParser;
import net.foxdenstudio.sponge.foxcore.plugin.util.Aliases;
import net.foxdenstudio.sponge.foxcore.common.util.CacheMap;
import org.spongepowered.api.Sponge;
import org.spongepowered.api.command.CommandException;
import org.spongepowered.api.command.CommandResult;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package net.foxdenstudio.sponge.foxcore.plugin.command;

import com.google.common.collect.ImmutableList;
import org.spongepowered.api.command.CommandCallable;
import org.spongepowered.api.command.CommandException;
import org.spongepowered.api.command.CommandResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ public Text getUsage(CommandSource source) {
return build.build();
}

protected class CommandHelp extends FCCommandBase{
protected class CommandHelp extends FCCommandBase {

@Override
public CommandResult process(CommandSource source, String arguments) throws CommandException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

package net.foxdenstudio.sponge.foxcore.plugin.state;

import net.foxdenstudio.sponge.foxcore.plugin.state.factory.IStateFieldFactory;
import net.foxdenstudio.sponge.foxcore.common.util.CacheMap;
import net.foxdenstudio.sponge.foxcore.plugin.state.factory.IStateFieldFactory;
import org.spongepowered.api.command.CommandSource;
import org.spongepowered.api.util.GuavaCollectors;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
import com.google.common.collect.ImmutableList;
import net.foxdenstudio.sponge.foxcore.plugin.command.util.ProcessResult;
import net.foxdenstudio.sponge.foxcore.plugin.selection.ISelection;
import net.foxdenstudio.sponge.foxcore.plugin.state.SourceState;
import net.foxdenstudio.sponge.foxcore.plugin.state.StateFieldBase;
import org.spongepowered.api.command.CommandException;
import org.spongepowered.api.command.CommandSource;
import org.spongepowered.api.text.Text;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public Optional<IStateField> getOrCreateFromAlias(String alias) {
} else return Optional.empty();
}

public void flush(){
public void flush() {
this.flush(true);
}

Expand All @@ -96,7 +96,7 @@ public void flush(boolean updateScoreboard) {
if (updateScoreboard) updateScoreboard();
}

public void flush(String field){
public void flush(String field) {
this.flush(true, field);
}

Expand All @@ -105,7 +105,7 @@ public void flush(boolean updateScoreboard, String field) {
if (updateScoreboard) updateScoreboard();
}

public void flush(String... fields){
public void flush(String... fields) {
this.flush(true, fields);
}

Expand Down

0 comments on commit 880ce53

Please sign in to comment.