Skip to content

Commit

Permalink
Format code [skip actions]
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 2, 2023
1 parent c08ab19 commit 8db1f59
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
import emu.grasscutter.game.props.*;
import emu.grasscutter.net.proto.ActivityInfoOuterClass;
import emu.grasscutter.server.packet.send.PacketActivityScheduleInfoNotify;
import lombok.Getter;

import java.util.*;
import java.util.concurrent.*;
import lombok.Getter;

@SuppressWarnings("unchecked")
@Getter
Expand Down
11 changes: 5 additions & 6 deletions src/main/java/emu/grasscutter/game/avatar/Avatar.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package emu.grasscutter.game.avatar;

import static emu.grasscutter.config.Configuration.GAME_OPTIONS;

import dev.morphia.annotations.*;
import emu.grasscutter.GameConstants;
import emu.grasscutter.data.GameData;
Expand Down Expand Up @@ -30,14 +32,11 @@
import emu.grasscutter.server.packet.send.*;
import emu.grasscutter.utils.helpers.ProtoHelper;
import it.unimi.dsi.fastutil.ints.*;
import lombok.*;
import org.bson.types.ObjectId;

import javax.annotation.*;
import java.util.*;
import java.util.stream.Stream;

import static emu.grasscutter.config.Configuration.GAME_OPTIONS;
import javax.annotation.*;
import lombok.*;
import org.bson.types.ObjectId;

@Entity(value = "avatars", useDiscriminator = false)
public class Avatar {
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/emu/grasscutter/game/quest/GameMainQuest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@
import emu.grasscutter.net.proto.ParentQuestOuterClass.ParentQuest;
import emu.grasscutter.server.packet.send.*;
import emu.grasscutter.utils.*;
import lombok.*;
import org.bson.types.ObjectId;

import java.util.*;
import java.util.stream.Collectors;
import lombok.*;
import org.bson.types.ObjectId;

@Entity(value = "quests", useDiscriminator = false)
public class GameMainQuest {
Expand Down Expand Up @@ -329,11 +328,12 @@ public boolean hasRewindPosition(int subId, List<Position> posAndRot) {
}

/**
* Checks if the quest has a teleport position. Returns true if it does and adds the target position
* and rotation to the list.
* Checks if the quest has a teleport position. Returns true if it does and adds the target
* position and rotation to the list.
*
* @param subId The sub-quest ID.
* @param posAndRot A list which will contain the position and rotation if the quest has a teleport.
* @param posAndRot A list which will contain the position and rotation if the quest has a
* teleport.
* @return True if the quest has a teleport position. False otherwise.
*/
public boolean hasTeleportPosition(int subId, List<Position> posAndRot) {
Expand Down
11 changes: 5 additions & 6 deletions src/main/java/emu/grasscutter/game/quest/QuestManager.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package emu.grasscutter.game.quest;

import static emu.grasscutter.GameConstants.DEBUG;
import static emu.grasscutter.config.Configuration.*;

import emu.grasscutter.Grasscutter;
import emu.grasscutter.data.GameData;
import emu.grasscutter.data.binout.*;
Expand All @@ -12,16 +15,12 @@
import emu.grasscutter.server.packet.send.*;
import io.netty.util.concurrent.FastThreadLocalThread;
import it.unimi.dsi.fastutil.ints.*;
import lombok.*;

import javax.annotation.Nonnull;
import java.util.*;
import java.util.concurrent.*;
import java.util.function.Consumer;
import java.util.stream.Collectors;

import static emu.grasscutter.GameConstants.DEBUG;
import static emu.grasscutter.config.Configuration.*;
import javax.annotation.Nonnull;
import lombok.*;

public final class QuestManager extends BasePlayerManager {
@Getter private final Player player;
Expand Down
7 changes: 3 additions & 4 deletions src/main/java/emu/grasscutter/game/world/World.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package emu.grasscutter.game.world;

import static emu.grasscutter.server.event.player.PlayerTeleportEvent.TeleportType.SCRIPT;

import emu.grasscutter.data.GameData;
import emu.grasscutter.data.excels.dungeon.DungeonData;
import emu.grasscutter.game.entity.*;
Expand All @@ -18,13 +20,10 @@
import emu.grasscutter.server.packet.send.*;
import emu.grasscutter.utils.ConversionUtils;
import it.unimi.dsi.fastutil.ints.*;
import java.util.*;
import lombok.*;
import org.jetbrains.annotations.NotNull;

import java.util.*;

import static emu.grasscutter.server.event.player.PlayerTeleportEvent.TeleportType.SCRIPT;

public class World implements Iterable<Player> {
@Getter private final GameServer server;
@Getter private Player host;
Expand Down
9 changes: 4 additions & 5 deletions src/main/java/emu/grasscutter/plugin/PluginManager.java
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
package emu.grasscutter.plugin;

import static emu.grasscutter.utils.lang.Language.translate;

import emu.grasscutter.Grasscutter;
import emu.grasscutter.server.event.*;
import emu.grasscutter.utils.*;
import lombok.*;

import javax.annotation.Nullable;
import java.io.*;
import java.lang.reflect.Method;
import java.net.*;
import java.util.*;
import java.util.jar.*;

import static emu.grasscutter.utils.lang.Language.translate;
import javax.annotation.Nullable;
import lombok.*;

/** Manages the server's plugins and the event system. */
public final class PluginManager {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package emu.grasscutter.server.http.dispatch;

import static emu.grasscutter.config.Configuration.*;

import com.google.gson.*;
import com.google.protobuf.ByteString;
import emu.grasscutter.*;
Expand All @@ -16,14 +18,11 @@
import emu.grasscutter.utils.*;
import io.javalin.Javalin;
import io.javalin.http.Context;
import org.slf4j.Logger;

import java.time.Instant;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.regex.Pattern;

import static emu.grasscutter.config.Configuration.*;
import org.slf4j.Logger;

/** Handles requests related to region queries. */
public final class RegionHandler implements Router {
Expand Down

0 comments on commit 8db1f59

Please sign in to comment.