mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-09 03:42:57 +08:00
Run formatter on new events
This commit is contained in:
parent
0ad8eb443b
commit
8c0032fc75
@ -12,13 +12,12 @@ import emu.grasscutter.game.props.ActionReason;
|
|||||||
import emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Status;
|
import emu.grasscutter.net.proto.AchievementOuterClass.Achievement.Status;
|
||||||
import emu.grasscutter.server.event.player.PlayerCompleteAchievementEvent;
|
import emu.grasscutter.server.event.player.PlayerCompleteAchievementEvent;
|
||||||
import emu.grasscutter.server.packet.send.*;
|
import emu.grasscutter.server.packet.send.*;
|
||||||
import lombok.*;
|
|
||||||
import org.bson.types.ObjectId;
|
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
import java.util.function.IntSupplier;
|
import java.util.function.IntSupplier;
|
||||||
|
import javax.annotation.Nullable;
|
||||||
|
import lombok.*;
|
||||||
|
import org.bson.types.ObjectId;
|
||||||
|
|
||||||
@Entity("achievements")
|
@Entity("achievements")
|
||||||
@Data
|
@Data
|
||||||
|
@ -18,11 +18,10 @@ import emu.grasscutter.server.event.player.PlayerFinishDungeonEvent;
|
|||||||
import emu.grasscutter.server.packet.send.*;
|
import emu.grasscutter.server.packet.send.*;
|
||||||
import emu.grasscutter.utils.Utils;
|
import emu.grasscutter.utils.Utils;
|
||||||
import it.unimi.dsi.fastutil.ints.*;
|
import it.unimi.dsi.fastutil.ints.*;
|
||||||
import lombok.*;
|
|
||||||
|
|
||||||
import javax.annotation.Nullable;
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.stream.*;
|
import java.util.stream.*;
|
||||||
|
import javax.annotation.Nullable;
|
||||||
|
import lombok.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO handle time limits TODO handle respawn points TODO handle team wipes and respawns TODO check
|
* TODO handle time limits TODO handle respawn points TODO handle team wipes and respawns TODO check
|
||||||
@ -282,10 +281,7 @@ public final class DungeonManager {
|
|||||||
this.endDungeon(BaseDungeonResult.DungeonEndReason.COMPLETED);
|
this.endDungeon(BaseDungeonResult.DungeonEndReason.COMPLETED);
|
||||||
|
|
||||||
// Call PlayerFinishDungeonEvent.
|
// Call PlayerFinishDungeonEvent.
|
||||||
new PlayerFinishDungeonEvent(
|
new PlayerFinishDungeonEvent(this.getScene().getPlayers(), this.getScene(), this).call();
|
||||||
this.getScene().getPlayers(),
|
|
||||||
this.getScene(), this
|
|
||||||
).call();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void quitDungeon() {
|
public void quitDungeon() {
|
||||||
|
@ -16,10 +16,9 @@ import emu.grasscutter.server.event.player.PlayerCompleteQuestEvent;
|
|||||||
import emu.grasscutter.server.packet.send.*;
|
import emu.grasscutter.server.packet.send.*;
|
||||||
import emu.grasscutter.utils.Utils;
|
import emu.grasscutter.utils.Utils;
|
||||||
import it.unimi.dsi.fastutil.ints.IntIntImmutablePair;
|
import it.unimi.dsi.fastutil.ints.IntIntImmutablePair;
|
||||||
import lombok.*;
|
|
||||||
|
|
||||||
import javax.script.Bindings;
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
import javax.script.Bindings;
|
||||||
|
import lombok.*;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
public class GameQuest {
|
public class GameQuest {
|
||||||
|
@ -18,10 +18,9 @@ import emu.grasscutter.server.game.*;
|
|||||||
import emu.grasscutter.server.packet.send.*;
|
import emu.grasscutter.server.packet.send.*;
|
||||||
import emu.grasscutter.utils.Utils;
|
import emu.grasscutter.utils.Utils;
|
||||||
import it.unimi.dsi.fastutil.ints.*;
|
import it.unimi.dsi.fastutil.ints.*;
|
||||||
import lombok.val;
|
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
|
import lombok.val;
|
||||||
|
|
||||||
public class InventorySystem extends BaseGameSystem {
|
public class InventorySystem extends BaseGameSystem {
|
||||||
private static final Int2IntMap weaponRefundMaterials = new Int2IntArrayMap();
|
private static final Int2IntMap weaponRefundMaterials = new Int2IntArrayMap();
|
||||||
|
@ -4,9 +4,8 @@ import emu.grasscutter.game.dungeons.DungeonManager;
|
|||||||
import emu.grasscutter.game.player.Player;
|
import emu.grasscutter.game.player.Player;
|
||||||
import emu.grasscutter.game.world.Scene;
|
import emu.grasscutter.game.world.Scene;
|
||||||
import emu.grasscutter.server.event.Event;
|
import emu.grasscutter.server.event.Event;
|
||||||
import lombok.*;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import lombok.*;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
|
Loading…
Reference in New Issue
Block a user