-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Polish translation, performance and worldgen fixes
- Loading branch information
Showing
7 changed files
with
166 additions
and
19 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
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
38 changes: 38 additions & 0 deletions
38
src/main/java/io/github/jerozgen/itemhunt/game/LazyWaitingWorld.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,38 @@ | ||
package io.github.jerozgen.itemhunt.game; | ||
|
||
import net.minecraft.block.BlockState; | ||
import net.minecraft.block.Blocks; | ||
import net.minecraft.registry.RegistryKey; | ||
import net.minecraft.registry.RegistryKeys; | ||
import net.minecraft.server.MinecraftServer; | ||
import net.minecraft.util.math.BlockPos; | ||
import net.minecraft.util.math.ChunkPos; | ||
import net.minecraft.world.World; | ||
import net.minecraft.world.biome.BiomeKeys; | ||
import net.minecraft.world.chunk.Chunk; | ||
import net.minecraft.world.chunk.ChunkStatus; | ||
import net.minecraft.world.chunk.EmptyChunk; | ||
import net.minecraft.world.chunk.WorldChunk; | ||
import org.jetbrains.annotations.Nullable; | ||
import xyz.nucleoid.fantasy.RuntimeWorld; | ||
import xyz.nucleoid.fantasy.RuntimeWorldConfig; | ||
|
||
public class LazyWaitingWorld extends RuntimeWorld { | ||
private final WorldChunk chunk; | ||
|
||
protected LazyWaitingWorld(MinecraftServer server, RegistryKey<World> registryKey, RuntimeWorldConfig config, Style style) { | ||
super(server, registryKey, config, style); | ||
this.chunk = new EmptyChunk(this, ChunkPos.ORIGIN, server.getRegistryManager().get(RegistryKeys.BIOME).getEntry(BiomeKeys.THE_VOID).get()) { | ||
@Override | ||
public BlockState getBlockState(BlockPos pos) { | ||
return Blocks.BARRIER.getDefaultState(); | ||
} | ||
}; | ||
} | ||
|
||
@Nullable | ||
@Override | ||
public Chunk getChunk(int chunkX, int chunkZ, ChunkStatus leastStatus, boolean create) { | ||
return this.chunk; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"gameType.itemhunt.itemhunt": "Item Hunt", | ||
|
||
"game.itemhunt.itemhunt": "Item Hunt", | ||
"game.itemhunt.itemhunt_with_crafting": "Item Hunt z wytwarzaniem", | ||
|
||
"game.itemhunt.desc1": "Zdobądź jak najwięcej", | ||
"game.itemhunt.desc2": "unikalnych przedmiotów!", | ||
|
||
"statistic.bundle.itemhunt": "Item Hunt", | ||
"statistic.bundle.itemhunt_with_crafting": "Item Hunt z wytwarzaniem", | ||
|
||
"statistic.itemhunt.items_obtained": "Zdobytych przedmiotów", | ||
|
||
"text.itemhunt.desc": "Zdobądź jak najwięcej unikalnych przedmiotów!", | ||
"text.itemhunt.item_obtained": "+ %s", | ||
"text.itemhunt.bossbar.time_left": "Pozostało %s", | ||
"text.itemhunt.end.singleplayer.to_player": "Koniec! Zdobyłeś %s unikalnych przedmiotów", | ||
"text.itemhunt.end.singleplayer.to_spectator": "Koniec! %s zdobył %s unikalnych przedmiotów", | ||
"text.itemhunt.end.multiplayer.winner": "%s wygrał z %s unikalnymi przedmiotami", | ||
"text.itemhunt.end.multiplayer.winners": "%s wygrali z %s unikalnymi przedmiotami", | ||
"text.itemhunt.end.gui.title": "Przedmioty %s", | ||
"text.itemhunt.end.gui.previous_page": "Poprzednia Strona", | ||
"text.itemhunt.end.gui.next_page": "Następna Strona", | ||
"text.itemhunt.error.finished": "Gra się zakończyła!" | ||
} |