-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #697 from FTBTeam/dev
Dev
- Loading branch information
Showing
11 changed files
with
79 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
common/src/main/java/dev/ftb/mods/ftbquests/FTBQServerProxy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package dev.ftb.mods.ftbquests; | ||
|
||
import dev.ftb.mods.ftbquests.quest.ServerQuestFile; | ||
import dev.ftb.mods.ftbquests.quest.loot.LootCrate; | ||
import dev.ftb.mods.ftbquests.quest.loot.RewardTable; | ||
|
||
import java.util.Collection; | ||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
public class FTBQServerProxy implements IQuestProxy { | ||
@Override | ||
public Collection<LootCrate> getKnownLootCrates() { | ||
return ServerQuestFile.INSTANCE != null ? ServerQuestFile.INSTANCE.getRewardTables().stream() | ||
.map(RewardTable::getLootCrate) | ||
.filter(Objects::nonNull) | ||
.toList() : | ||
List.of(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package dev.ftb.mods.ftbquests; | ||
|
||
import dev.ftb.mods.ftbquests.quest.loot.LootCrate; | ||
|
||
import java.util.Collection; | ||
|
||
public interface IQuestProxy { | ||
Collection<LootCrate> getKnownLootCrates(); | ||
} |
20 changes: 20 additions & 0 deletions
20
common/src/main/java/dev/ftb/mods/ftbquests/client/FTBQClientProxy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package dev.ftb.mods.ftbquests.client; | ||
|
||
import dev.ftb.mods.ftbquests.IQuestProxy; | ||
import dev.ftb.mods.ftbquests.quest.loot.LootCrate; | ||
import dev.ftb.mods.ftbquests.quest.loot.RewardTable; | ||
|
||
import java.util.Collection; | ||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
public class FTBQClientProxy implements IQuestProxy { | ||
@Override | ||
public Collection<LootCrate> getKnownLootCrates() { | ||
return ClientQuestFile.exists() ? ClientQuestFile.INSTANCE.getRewardTables().stream() | ||
.map(RewardTable::getLootCrate) | ||
.filter(Objects::nonNull) | ||
.toList() : | ||
List.of(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters