Trash remaining 1.19 & 1.18.1 unsupported mc version, and fixup 1.19.2
This commit is contained in:
@@ -9,6 +9,7 @@ stages:
|
|||||||
- build_1_18_2
|
- build_1_18_2
|
||||||
- build_1_19_4
|
- build_1_19_4
|
||||||
- build_1_20_1
|
- build_1_20_1
|
||||||
|
- build_1_19_2
|
||||||
- pages
|
- pages
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
@@ -50,6 +51,39 @@ build_1_18_2:
|
|||||||
- cache/
|
- cache/
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
|
# 1.19.2 build
|
||||||
|
build_1_19_2:
|
||||||
|
stage: build_1_19_2
|
||||||
|
script:
|
||||||
|
# this both runs the unit tests and assembles the code
|
||||||
|
- ./gradlew clean -PmcVer="1.19.2" --gradle-user-home cache/;
|
||||||
|
- ./gradlew build -PmcVer="1.19.2" --gradle-user-home cache/;
|
||||||
|
- ./gradlew mergeJars -PmcVer="1.19.2" --gradle-user-home cache/;
|
||||||
|
image: eclipse-temurin:17
|
||||||
|
artifacts:
|
||||||
|
name: "NightlyBuild_1_19_2-${CI_COMMIT_SHORT_SHA}-${CI_COMMIT_TIMESTAMP}"
|
||||||
|
paths:
|
||||||
|
- Merged/*.jar
|
||||||
|
- fabric/build/libs/*.jar
|
||||||
|
- forge/build/libs/*.jar
|
||||||
|
- quilt/build/libs/*.jar
|
||||||
|
exclude:
|
||||||
|
# TODO: There is a lot of duplicate stuff here, fix it later to be smaller
|
||||||
|
- fabric/build/libs/*-all.jar
|
||||||
|
- fabric/build/libs/*-sources.jar
|
||||||
|
- forge/build/libs/*-all.jar
|
||||||
|
- forge/build/libs/*-sources.jar
|
||||||
|
- quilt/build/libs/*-all.jar
|
||||||
|
- quilt/build/libs/*-sources.jar
|
||||||
|
expire_in: 1 day
|
||||||
|
when: always
|
||||||
|
cache:
|
||||||
|
key: "gradleCache"
|
||||||
|
policy: pull-push
|
||||||
|
paths:
|
||||||
|
- .gradle
|
||||||
|
- cache/
|
||||||
|
allow_failure: true
|
||||||
|
|
||||||
# 1.19.4 build
|
# 1.19.4 build
|
||||||
build_1_19_4:
|
build_1_19_4:
|
||||||
|
|||||||
+2
-4
@@ -10,11 +10,9 @@ echo So if someone does use Windows and knows how to script stuff then can you p
|
|||||||
@REM Old BAT script if you need some help with this task
|
@REM Old BAT script if you need some help with this task
|
||||||
|
|
||||||
@REM SETLOCAL
|
@REM SETLOCAL
|
||||||
@REM CALL :buildVersion "1.19"
|
|
||||||
@REM CALL :buildVersion "1.18.2"
|
@REM CALL :buildVersion "1.18.2"
|
||||||
@REM CALL :buildVersion "1.18.1"
|
@REM CALL :buildVersion "1.19.4"
|
||||||
@REM CALL :buildVersion "1.17.1"
|
@REM CALL :buildVersion "1.20.1"
|
||||||
@REM CALL :buildVersion "1.16.5"
|
|
||||||
@REM EXIT /B %ERRORLEVEL%
|
@REM EXIT /B %ERRORLEVEL%
|
||||||
@REM
|
@REM
|
||||||
@REM :buildVersion
|
@REM :buildVersion
|
||||||
|
|||||||
+2
-2
@@ -22,7 +22,7 @@ package com.seibel.distanthorizons.common.forge;
|
|||||||
import com.seibel.distanthorizons.common.wrappers.minecraft.MinecraftClientWrapper;
|
import com.seibel.distanthorizons.common.wrappers.minecraft.MinecraftClientWrapper;
|
||||||
import net.minecraft.client.renderer.block.model.BakedQuad;
|
import net.minecraft.client.renderer.block.model.BakedQuad;
|
||||||
import net.minecraft.core.Direction;
|
import net.minecraft.core.Direction;
|
||||||
#if POST_MC_1_19
|
#if POST_MC_1_19_2
|
||||||
import net.minecraft.util.RandomSource;
|
import net.minecraft.util.RandomSource;
|
||||||
#endif
|
#endif
|
||||||
import net.minecraft.world.level.ColorResolver;
|
import net.minecraft.world.level.ColorResolver;
|
||||||
@@ -39,7 +39,7 @@ import java.util.Random;
|
|||||||
* @author Ran
|
* @author Ran
|
||||||
*/
|
*/
|
||||||
public interface LodForgeMethodCaller {
|
public interface LodForgeMethodCaller {
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
List<BakedQuad> getQuads(MinecraftClientWrapper mc, Block block, BlockState blockState, Direction direction, Random random); // FIXME: For 1.19
|
List<BakedQuad> getQuads(MinecraftClientWrapper mc, Block block, BlockState blockState, Direction direction, Random random); // FIXME: For 1.19
|
||||||
#else
|
#else
|
||||||
List<BakedQuad> getQuads(MinecraftClientWrapper mc, Block block, BlockState blockState, Direction direction, RandomSource random); // FIXME: For 1.19
|
List<BakedQuad> getQuads(MinecraftClientWrapper mc, Block block, BlockState blockState, Direction direction, RandomSource random); // FIXME: For 1.19
|
||||||
|
|||||||
+1
-1
@@ -58,7 +58,7 @@ public class VersionConstants implements IVersionConstants
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getMinecraftVersion() {
|
public String getMinecraftVersion() {
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
return Minecraft.getInstance().getGame().getVersion().getId();
|
return Minecraft.getInstance().getGame().getVersion().getId();
|
||||||
#else
|
#else
|
||||||
return SharedConstants.getCurrentVersion().getId();
|
return SharedConstants.getCurrentVersion().getId();
|
||||||
|
|||||||
+1
-1
@@ -30,7 +30,7 @@ import com.seibel.distanthorizons.core.wrapperInterfaces.world.IBiomeWrapper;
|
|||||||
|
|
||||||
import net.minecraft.client.Minecraft;
|
import net.minecraft.client.Minecraft;
|
||||||
import net.minecraft.core.Holder;
|
import net.minecraft.core.Holder;
|
||||||
#if POST_MC_1_19
|
#if POST_MC_1_19_2
|
||||||
import net.minecraft.data.worldgen.biome.EndBiomes;
|
import net.minecraft.data.worldgen.biome.EndBiomes;
|
||||||
import net.minecraft.data.worldgen.biome.NetherBiomes;
|
import net.minecraft.data.worldgen.biome.NetherBiomes;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+2
-2
@@ -19,7 +19,7 @@ import net.minecraft.world.level.block.Block;
|
|||||||
import net.minecraft.world.level.block.FlowerBlock;
|
import net.minecraft.world.level.block.FlowerBlock;
|
||||||
import net.minecraft.world.level.block.LeavesBlock;
|
import net.minecraft.world.level.block.LeavesBlock;
|
||||||
import net.minecraft.world.level.block.RotatedPillarBlock;
|
import net.minecraft.world.level.block.RotatedPillarBlock;
|
||||||
#if POST_MC_1_19
|
#if POST_MC_1_19_2
|
||||||
import net.minecraft.util.RandomSource;
|
import net.minecraft.util.RandomSource;
|
||||||
#endif
|
#endif
|
||||||
import net.minecraft.world.level.block.state.BlockState;
|
import net.minecraft.world.level.block.state.BlockState;
|
||||||
@@ -37,7 +37,7 @@ public class ClientBlockStateCache
|
|||||||
|
|
||||||
private static final Logger LOGGER = DhLoggerBuilder.getLogger();
|
private static final Logger LOGGER = DhLoggerBuilder.getLogger();
|
||||||
|
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
public static final Random random = new Random(0);
|
public static final Random random = new Random(0);
|
||||||
#else
|
#else
|
||||||
public static final RandomSource random = RandomSource.create();
|
public static final RandomSource random = RandomSource.create();
|
||||||
|
|||||||
+3
-3
@@ -144,7 +144,7 @@ public class ChunkWrapper implements IChunkWrapper
|
|||||||
#if PRE_MC_1_17_1
|
#if PRE_MC_1_17_1
|
||||||
return BiomeWrapper.getBiomeWrapper(chunk.getBiomes().getNoiseBiome(
|
return BiomeWrapper.getBiomeWrapper(chunk.getBiomes().getNoiseBiome(
|
||||||
x >> 2, y >> 2, z >> 2));
|
x >> 2, y >> 2, z >> 2));
|
||||||
#elif PRE_MC_1_18_1
|
#elif PRE_MC_1_18_2
|
||||||
return BiomeWrapper.getBiomeWrapper(chunk.getBiomes().getNoiseBiome(
|
return BiomeWrapper.getBiomeWrapper(chunk.getBiomes().getNoiseBiome(
|
||||||
QuartPos.fromBlock(x), QuartPos.fromBlock(y), QuartPos.fromBlock(z)));
|
QuartPos.fromBlock(x), QuartPos.fromBlock(y), QuartPos.fromBlock(z)));
|
||||||
#elif PRE_MC_1_18_2
|
#elif PRE_MC_1_18_2
|
||||||
@@ -176,7 +176,7 @@ public class ChunkWrapper implements IChunkWrapper
|
|||||||
@Override
|
@Override
|
||||||
public boolean isLightCorrect()
|
public boolean isLightCorrect()
|
||||||
{
|
{
|
||||||
#if PRE_MC_1_18_1
|
#if PRE_MC_1_18_2
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
if (this.chunk instanceof LevelChunk)
|
if (this.chunk instanceof LevelChunk)
|
||||||
@@ -399,7 +399,7 @@ public class ChunkWrapper implements IChunkWrapper
|
|||||||
|
|
||||||
public static void syncedUpdateClientLightStatus()
|
public static void syncedUpdateClientLightStatus()
|
||||||
{
|
{
|
||||||
#if PRE_MC_1_18_1
|
#if PRE_MC_1_18_2
|
||||||
// TODO: Check what to do in 1.18.1, or in other versions
|
// TODO: Check what to do in 1.18.1, or in other versions
|
||||||
#else
|
#else
|
||||||
weakMapLock.writeLock().lock();
|
weakMapLock.writeLock().lock();
|
||||||
|
|||||||
+1
-1
@@ -53,7 +53,7 @@ import net.minecraft.client.resources.language.I18n; // translation
|
|||||||
#if POST_MC_1_17_1
|
#if POST_MC_1_17_1
|
||||||
import net.minecraft.client.gui.narration.NarratableEntry;
|
import net.minecraft.client.gui.narration.NarratableEntry;
|
||||||
#endif
|
#endif
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
import net.minecraft.network.chat.TextComponent;
|
import net.minecraft.network.chat.TextComponent;
|
||||||
import net.minecraft.network.chat.TranslatableComponent;
|
import net.minecraft.network.chat.TranslatableComponent;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import net.minecraft.client.gui.components.Button;
|
|||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
import net.minecraft.network.chat.MutableComponent;
|
import net.minecraft.network.chat.MutableComponent;
|
||||||
|
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
import net.minecraft.network.chat.TextComponent;
|
import net.minecraft.network.chat.TextComponent;
|
||||||
import net.minecraft.network.chat.TranslatableComponent;
|
import net.minecraft.network.chat.TranslatableComponent;
|
||||||
#endif
|
#endif
|
||||||
@@ -15,7 +15,7 @@ public class GuiHelper {
|
|||||||
* Helper static methods for versional compat
|
* Helper static methods for versional compat
|
||||||
*/
|
*/
|
||||||
public static Button MakeBtn(Component base, int a, int b, int c, int d, Button.OnPress action) {
|
public static Button MakeBtn(Component base, int a, int b, int c, int d, Button.OnPress action) {
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_4
|
||||||
return new Button(a, b, c, d, base, action);
|
return new Button(a, b, c, d, base, action);
|
||||||
#else
|
#else
|
||||||
return Button.builder(base, action).bounds(a,b,c,d).build();
|
return Button.builder(base, action).bounds(a,b,c,d).build();
|
||||||
@@ -23,7 +23,7 @@ public class GuiHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static MutableComponent TextOrLiteral(String text) {
|
public static MutableComponent TextOrLiteral(String text) {
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
return new TextComponent(text);
|
return new TextComponent(text);
|
||||||
#else
|
#else
|
||||||
return Component.literal(text);
|
return Component.literal(text);
|
||||||
@@ -31,7 +31,7 @@ public class GuiHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static MutableComponent TextOrTranslatable(String text) {
|
public static MutableComponent TextOrTranslatable(String text) {
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
return new TextComponent(text);
|
return new TextComponent(text);
|
||||||
#else
|
#else
|
||||||
return Component.translatable(text);
|
return Component.translatable(text);
|
||||||
@@ -39,7 +39,7 @@ public class GuiHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static MutableComponent Translatable(String text, Object... args) {
|
public static MutableComponent Translatable(String text, Object... args) {
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
return new TranslatableComponent(text, args);
|
return new TranslatableComponent(text, args);
|
||||||
#else
|
#else
|
||||||
return Component.translatable(text, args);
|
return Component.translatable(text, args);
|
||||||
@@ -47,7 +47,7 @@ public class GuiHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void SetX(AbstractWidget w, int x) {
|
public static void SetX(AbstractWidget w, int x) {
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_4
|
||||||
w.x = x;
|
w.x = x;
|
||||||
#else
|
#else
|
||||||
w.setX(x);
|
w.setX(x);
|
||||||
@@ -55,7 +55,7 @@ public class GuiHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void SetY(AbstractWidget w, int y) {
|
public static void SetY(AbstractWidget w, int y) {
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_4
|
||||||
w.y = y;
|
w.y = y;
|
||||||
#else
|
#else
|
||||||
w.setY(y);
|
w.setY(y);
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@ public class MinecraftScreen {
|
|||||||
private AbstractScreen screen;
|
private AbstractScreen screen;
|
||||||
|
|
||||||
|
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
public static net.minecraft.network.chat.TranslatableComponent translate (String str, Object... args) {
|
public static net.minecraft.network.chat.TranslatableComponent translate (String str, Object... args) {
|
||||||
return new net.minecraft.network.chat.TranslatableComponent(str, args);
|
return new net.minecraft.network.chat.TranslatableComponent(str, args);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ import net.minecraft.client.gui.components.events.GuiEventListener;
|
|||||||
import net.minecraft.client.gui.narration.NarratableEntry;
|
import net.minecraft.client.gui.narration.NarratableEntry;
|
||||||
import net.minecraft.client.gui.screens.Screen;
|
import net.minecraft.client.gui.screens.Screen;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
import net.minecraft.network.chat.TextComponent;
|
import net.minecraft.network.chat.TextComponent;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -43,7 +43,7 @@ import net.minecraft.client.player.LocalPlayer;
|
|||||||
import net.minecraft.client.resources.model.ModelManager;
|
import net.minecraft.client.resources.model.ModelManager;
|
||||||
import net.minecraft.core.BlockPos;
|
import net.minecraft.core.BlockPos;
|
||||||
import net.minecraft.core.Direction;
|
import net.minecraft.core.Direction;
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
import net.minecraft.network.chat.TextComponent;
|
import net.minecraft.network.chat.TextComponent;
|
||||||
#endif
|
#endif
|
||||||
import net.minecraft.server.level.ServerLevel;
|
import net.minecraft.server.level.ServerLevel;
|
||||||
@@ -223,7 +223,7 @@ public class MinecraftClientWrapper implements IMinecraftClientWrapper, IMinecra
|
|||||||
{
|
{
|
||||||
LocalPlayer p = getPlayer();
|
LocalPlayer p = getPlayer();
|
||||||
if (p == null) return;
|
if (p == null) return;
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
p.sendMessage(new TextComponent(string), getPlayer().getUUID());
|
p.sendMessage(new TextComponent(string), getPlayer().getUUID());
|
||||||
#else
|
#else
|
||||||
p.sendSystemMessage(net.minecraft.network.chat.Component.translatable(string));
|
p.sendSystemMessage(net.minecraft.network.chat.Component.translatable(string));
|
||||||
|
|||||||
+3
-3
@@ -138,7 +138,7 @@ public class MinecraftRenderWrapper implements IMinecraftRenderWrapper
|
|||||||
@Override
|
@Override
|
||||||
public double getGamma()
|
public double getGamma()
|
||||||
{
|
{
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
return MC.options.gamma;
|
return MC.options.gamma;
|
||||||
#else
|
#else
|
||||||
return MC.options.gamma().get();
|
return MC.options.gamma().get();
|
||||||
@@ -186,7 +186,7 @@ public class MinecraftRenderWrapper implements IMinecraftRenderWrapper
|
|||||||
@Override
|
@Override
|
||||||
public int getRenderDistance()
|
public int getRenderDistance()
|
||||||
{
|
{
|
||||||
#if PRE_MC_1_18_1
|
#if PRE_MC_1_18_2
|
||||||
//FIXME: How to resolve this?
|
//FIXME: How to resolve this?
|
||||||
return MC.options.renderDistance;
|
return MC.options.renderDistance;
|
||||||
#else
|
#else
|
||||||
@@ -278,7 +278,7 @@ public class MinecraftRenderWrapper implements IMinecraftRenderWrapper
|
|||||||
try {
|
try {
|
||||||
LevelRenderer levelRenderer = MC.levelRenderer;
|
LevelRenderer levelRenderer = MC.levelRenderer;
|
||||||
Collection<LevelRenderer.RenderChunkInfo> chunks =
|
Collection<LevelRenderer.RenderChunkInfo> chunks =
|
||||||
#if PRE_MC_1_18_1 levelRenderer.renderChunks;
|
#if PRE_MC_1_18_2 levelRenderer.renderChunks;
|
||||||
#else levelRenderer.renderChunkStorage.get().renderChunks; #endif
|
#else levelRenderer.renderChunkStorage.get().renderChunks; #endif
|
||||||
|
|
||||||
return (chunks.stream().map((chunk) -> {
|
return (chunks.stream().map((chunk) -> {
|
||||||
|
|||||||
+6
-6
@@ -55,7 +55,7 @@ import com.seibel.distanthorizons.common.wrappers.worldGeneration.step.StepStruc
|
|||||||
import com.seibel.distanthorizons.common.wrappers.worldGeneration.step.StepStructureStart;
|
import com.seibel.distanthorizons.common.wrappers.worldGeneration.step.StepStructureStart;
|
||||||
import com.seibel.distanthorizons.common.wrappers.worldGeneration.step.StepSurface;
|
import com.seibel.distanthorizons.common.wrappers.worldGeneration.step.StepSurface;
|
||||||
|
|
||||||
#if POST_MC_1_19
|
#if POST_MC_1_19_4
|
||||||
import net.minecraft.core.registries.Registries;
|
import net.minecraft.core.registries.Registries;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -309,7 +309,7 @@ public final class BatchGenerationEnvironment extends AbstractBatchGenerationEnv
|
|||||||
private static ProtoChunk EmptyChunk(ServerLevel level, ChunkPos chunkPos) {
|
private static ProtoChunk EmptyChunk(ServerLevel level, ChunkPos chunkPos) {
|
||||||
return new ProtoChunk(chunkPos, UpgradeData.EMPTY
|
return new ProtoChunk(chunkPos, UpgradeData.EMPTY
|
||||||
#if POST_MC_1_17_1, level #endif
|
#if POST_MC_1_17_1, level #endif
|
||||||
#if POST_MC_1_18_1, level.registryAccess().registryOrThrow(
|
#if POST_MC_1_18_2, level.registryAccess().registryOrThrow(
|
||||||
#if PRE_MC_1_19_4
|
#if PRE_MC_1_19_4
|
||||||
Registry.BIOME_REGISTRY
|
Registry.BIOME_REGISTRY
|
||||||
#else
|
#else
|
||||||
@@ -394,7 +394,7 @@ public final class BatchGenerationEnvironment extends AbstractBatchGenerationEnv
|
|||||||
{
|
{
|
||||||
target = new ProtoChunk(chunkPos, UpgradeData.EMPTY
|
target = new ProtoChunk(chunkPos, UpgradeData.EMPTY
|
||||||
#if POST_MC_1_17_1 , params.level #endif
|
#if POST_MC_1_17_1 , params.level #endif
|
||||||
#if POST_MC_1_18_1 , params.biomes, null #endif
|
#if POST_MC_1_18_2 , params.biomes, null #endif
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return target;
|
return target;
|
||||||
@@ -433,7 +433,7 @@ public final class BatchGenerationEnvironment extends AbstractBatchGenerationEnv
|
|||||||
}
|
}
|
||||||
|
|
||||||
boolean isFull = target.getStatus() == ChunkStatus.FULL || target instanceof LevelChunk;
|
boolean isFull = target.getStatus() == ChunkStatus.FULL || target instanceof LevelChunk;
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
boolean isPartial = target.isOldNoiseGeneration();
|
boolean isPartial = target.isOldNoiseGeneration();
|
||||||
#endif
|
#endif
|
||||||
if (isFull)
|
if (isFull)
|
||||||
@@ -441,7 +441,7 @@ public final class BatchGenerationEnvironment extends AbstractBatchGenerationEnv
|
|||||||
LOAD_LOGGER.info("Detected full existing chunk at {}", target.getPos());
|
LOAD_LOGGER.info("Detected full existing chunk at {}", target.getPos());
|
||||||
genEvent.resultConsumer.accept(wrappedChunk);
|
genEvent.resultConsumer.accept(wrappedChunk);
|
||||||
}
|
}
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
else if (isPartial)
|
else if (isPartial)
|
||||||
{
|
{
|
||||||
LOAD_LOGGER.info("Detected old existing chunk at {}", target.getPos());
|
LOAD_LOGGER.info("Detected old existing chunk at {}", target.getPos());
|
||||||
@@ -582,7 +582,7 @@ public final class BatchGenerationEnvironment extends AbstractBatchGenerationEnv
|
|||||||
// that though is no longer needed...
|
// that though is no longer needed...
|
||||||
}
|
}
|
||||||
|
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
if (chunk instanceof LevelChunk)
|
if (chunk instanceof LevelChunk)
|
||||||
{
|
{
|
||||||
LevelChunk levelChunk = (LevelChunk) chunk;
|
LevelChunk levelChunk = (LevelChunk) chunk;
|
||||||
|
|||||||
+7
-7
@@ -31,16 +31,16 @@ import net.minecraft.server.level.ThreadedLevelLightEngine;
|
|||||||
import net.minecraft.world.level.biome.Biome;
|
import net.minecraft.world.level.biome.Biome;
|
||||||
import net.minecraft.world.level.biome.BiomeManager;
|
import net.minecraft.world.level.biome.BiomeManager;
|
||||||
import net.minecraft.world.level.chunk.ChunkGenerator;
|
import net.minecraft.world.level.chunk.ChunkGenerator;
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
import net.minecraft.world.level.chunk.storage.ChunkScanAccess;
|
import net.minecraft.world.level.chunk.storage.ChunkScanAccess;
|
||||||
#endif
|
#endif
|
||||||
import net.minecraft.world.level.levelgen.WorldGenSettings;
|
import net.minecraft.world.level.levelgen.WorldGenSettings;
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureManager;
|
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureManager;
|
||||||
#else
|
#else
|
||||||
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager;
|
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureTemplateManager;
|
||||||
import net.minecraft.world.level.levelgen.RandomState;
|
import net.minecraft.world.level.levelgen.RandomState;
|
||||||
#if POST_MC_1_19
|
#if POST_MC_1_19_4
|
||||||
import net.minecraft.world.level.levelgen.WorldOptions;
|
import net.minecraft.world.level.levelgen.WorldOptions;
|
||||||
import net.minecraft.core.registries.Registries;
|
import net.minecraft.core.registries.Registries;
|
||||||
#endif
|
#endif
|
||||||
@@ -50,7 +50,7 @@ import net.minecraft.world.level.storage.WorldData;
|
|||||||
public final class GlobalParameters
|
public final class GlobalParameters
|
||||||
{
|
{
|
||||||
public final ChunkGenerator generator;
|
public final ChunkGenerator generator;
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
public final StructureManager structures;
|
public final StructureManager structures;
|
||||||
#else
|
#else
|
||||||
public final StructureTemplateManager structures;
|
public final StructureTemplateManager structures;
|
||||||
@@ -68,7 +68,7 @@ public final class GlobalParameters
|
|||||||
public final RegistryAccess registry;
|
public final RegistryAccess registry;
|
||||||
public final long worldSeed;
|
public final long worldSeed;
|
||||||
public final DataFixer fixerUpper;
|
public final DataFixer fixerUpper;
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
public final BiomeManager biomeManager;
|
public final BiomeManager biomeManager;
|
||||||
public final ChunkScanAccess chunkScanner; // FIXME: Figure out if this is actually needed
|
public final ChunkScanAccess chunkScanner; // FIXME: Figure out if this is actually needed
|
||||||
#endif
|
#endif
|
||||||
@@ -92,14 +92,14 @@ public final class GlobalParameters
|
|||||||
biomes = registry.registryOrThrow(Registries.BIOME);
|
biomes = registry.registryOrThrow(Registries.BIOME);
|
||||||
worldSeed = worldOptions.seed();
|
worldSeed = worldOptions.seed();
|
||||||
#endif
|
#endif
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
biomeManager = new BiomeManager(level, BiomeManager.obfuscateSeed(worldSeed));
|
biomeManager = new BiomeManager(level, BiomeManager.obfuscateSeed(worldSeed));
|
||||||
chunkScanner = level.getChunkSource().chunkScanner();
|
chunkScanner = level.getChunkSource().chunkScanner();
|
||||||
#endif
|
#endif
|
||||||
structures = server.getStructureManager();
|
structures = server.getStructureManager();
|
||||||
generator = level.getChunkSource().getGenerator();
|
generator = level.getChunkSource().getGenerator();
|
||||||
fixerUpper = server.getFixerUpper();
|
fixerUpper = server.getFixerUpper();
|
||||||
#if POST_MC_1_19
|
#if POST_MC_1_19_2
|
||||||
randomState = level.getChunkSource().randomState();
|
randomState = level.getChunkSource().randomState();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-5
@@ -25,7 +25,7 @@ import com.seibel.distanthorizons.common.wrappers.worldGeneration.mimicObject.Wo
|
|||||||
|
|
||||||
import net.minecraft.server.level.ServerLevel;
|
import net.minecraft.server.level.ServerLevel;
|
||||||
import net.minecraft.world.level.WorldGenLevel;
|
import net.minecraft.world.level.WorldGenLevel;
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
import net.minecraft.world.level.levelgen.structure.StructureCheck;
|
import net.minecraft.world.level.levelgen.structure.StructureCheck;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ public final class ThreadedParameters
|
|||||||
|
|
||||||
final ServerLevel level;
|
final ServerLevel level;
|
||||||
public WorldGenStructFeatManager structFeat = null;
|
public WorldGenStructFeatManager structFeat = null;
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
public StructureCheck structCheck;
|
public StructureCheck structCheck;
|
||||||
#endif
|
#endif
|
||||||
boolean isValid = true;
|
boolean isValid = true;
|
||||||
@@ -63,7 +63,7 @@ public final class ThreadedParameters
|
|||||||
previousGlobalParameters = param;
|
previousGlobalParameters = param;
|
||||||
|
|
||||||
this.level = param.level;
|
this.level = param.level;
|
||||||
#if PRE_MC_1_18_1
|
#if PRE_MC_1_18_2
|
||||||
this.structFeat = new WorldGenStructFeatManager(param.worldGenSettings, level);
|
this.structFeat = new WorldGenStructFeatManager(param.worldGenSettings, level);
|
||||||
#elif PRE_MC_1_19
|
#elif PRE_MC_1_19
|
||||||
this.structCheck = this.createStructureCheck(param);
|
this.structCheck = this.createStructureCheck(param);
|
||||||
@@ -81,14 +81,14 @@ public final class ThreadedParameters
|
|||||||
public void makeStructFeat(WorldGenLevel genLevel, GlobalParameters param)
|
public void makeStructFeat(WorldGenLevel genLevel, GlobalParameters param)
|
||||||
{
|
{
|
||||||
#if PRE_MC_1_19_4
|
#if PRE_MC_1_19_4
|
||||||
structFeat = new WorldGenStructFeatManager(param.worldGenSettings, genLevel #if POST_MC_1_18_1, structCheck #endif);
|
structFeat = new WorldGenStructFeatManager(param.worldGenSettings, genLevel #if POST_MC_1_18_2, structCheck #endif);
|
||||||
#else
|
#else
|
||||||
structFeat = new WorldGenStructFeatManager(param.worldOptions, genLevel, structCheck);
|
structFeat = new WorldGenStructFeatManager(param.worldOptions, genLevel, structCheck);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
public void recreateStructureCheck()
|
public void recreateStructureCheck()
|
||||||
{
|
{
|
||||||
if (previousGlobalParameters != null)
|
if (previousGlobalParameters != null)
|
||||||
|
|||||||
+13
-13
@@ -54,9 +54,9 @@ import net.minecraft.world.level.block.state.BlockState;
|
|||||||
import net.minecraft.world.level.chunk.*;
|
import net.minecraft.world.level.chunk.*;
|
||||||
import net.minecraft.world.level.chunk.storage.ChunkSerializer;
|
import net.minecraft.world.level.chunk.storage.ChunkSerializer;
|
||||||
import net.minecraft.world.level.levelgen.Heightmap;
|
import net.minecraft.world.level.levelgen.Heightmap;
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
import net.minecraft.world.level.levelgen.blending.BlendingData;
|
import net.minecraft.world.level.levelgen.blending.BlendingData;
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
import net.minecraft.world.level.levelgen.feature.StructureFeature;
|
import net.minecraft.world.level.levelgen.feature.StructureFeature;
|
||||||
#endif
|
#endif
|
||||||
import net.minecraft.world.level.levelgen.structure.StructureStart;
|
import net.minecraft.world.level.levelgen.structure.StructureStart;
|
||||||
@@ -66,7 +66,7 @@ import net.minecraft.world.ticks.LevelChunkTicks;
|
|||||||
#if POST_MC_1_18_2
|
#if POST_MC_1_18_2
|
||||||
import net.minecraft.core.Holder;
|
import net.minecraft.core.Holder;
|
||||||
import net.minecraft.core.RegistryAccess;
|
import net.minecraft.core.RegistryAccess;
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
import net.minecraft.world.level.levelgen.feature.ConfiguredStructureFeature;
|
import net.minecraft.world.level.levelgen.feature.ConfiguredStructureFeature;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
@@ -78,9 +78,9 @@ import org.apache.logging.log4j.Logger;
|
|||||||
|
|
||||||
public class ChunkLoader
|
public class ChunkLoader
|
||||||
{
|
{
|
||||||
#if POST_MC_1_19
|
#if POST_MC_1_19_2
|
||||||
private static final Codec<PalettedContainer<BlockState>> BLOCK_STATE_CODEC = PalettedContainer.codecRW(Block.BLOCK_STATE_REGISTRY, BlockState.CODEC, PalettedContainer.Strategy.SECTION_STATES, Blocks.AIR.defaultBlockState());
|
private static final Codec<PalettedContainer<BlockState>> BLOCK_STATE_CODEC = PalettedContainer.codecRW(Block.BLOCK_STATE_REGISTRY, BlockState.CODEC, PalettedContainer.Strategy.SECTION_STATES, Blocks.AIR.defaultBlockState());
|
||||||
#elif POST_MC_1_18_1
|
#elif POST_MC_1_18_2
|
||||||
private static final Codec<PalettedContainer<BlockState>> BLOCK_STATE_CODEC = PalettedContainer.codec(Block.BLOCK_STATE_REGISTRY, BlockState.CODEC, PalettedContainer.Strategy.SECTION_STATES, Blocks.AIR.defaultBlockState());
|
private static final Codec<PalettedContainer<BlockState>> BLOCK_STATE_CODEC = PalettedContainer.codec(Block.BLOCK_STATE_REGISTRY, BlockState.CODEC, PalettedContainer.Strategy.SECTION_STATES, Blocks.AIR.defaultBlockState());
|
||||||
#endif
|
#endif
|
||||||
private static final String TAG_UPGRADE_DATA = "UpgradeData";
|
private static final String TAG_UPGRADE_DATA = "UpgradeData";
|
||||||
@@ -90,7 +90,7 @@ public class ChunkLoader
|
|||||||
private static final String FLUID_TICKS_TAG_PRE18 = "LiquidTicks";
|
private static final String FLUID_TICKS_TAG_PRE18 = "LiquidTicks";
|
||||||
private static final ConfigBasedLogger LOGGER = BatchGenerationEnvironment.LOAD_LOGGER;
|
private static final ConfigBasedLogger LOGGER = BatchGenerationEnvironment.LOAD_LOGGER;
|
||||||
|
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
private static BlendingData readBlendingData(CompoundTag chunkData)
|
private static BlendingData readBlendingData(CompoundTag chunkData)
|
||||||
{
|
{
|
||||||
BlendingData blendingData = null;
|
BlendingData blendingData = null;
|
||||||
@@ -106,7 +106,7 @@ public class ChunkLoader
|
|||||||
|
|
||||||
private static LevelChunkSection[] readSections(LevelAccessor level, LevelLightEngine lightEngine, ChunkPos chunkPos, CompoundTag chunkData)
|
private static LevelChunkSection[] readSections(LevelAccessor level, LevelLightEngine lightEngine, ChunkPos chunkPos, CompoundTag chunkData)
|
||||||
{
|
{
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
#if PRE_MC_1_19_4
|
#if PRE_MC_1_19_4
|
||||||
Registry<Biome> biomes = level.registryAccess().registryOrThrow(Registry.BIOME_REGISTRY);
|
Registry<Biome> biomes = level.registryAccess().registryOrThrow(Registry.BIOME_REGISTRY);
|
||||||
#else
|
#else
|
||||||
@@ -136,7 +136,7 @@ public class ChunkLoader
|
|||||||
CompoundTag tagSection = tagSections.getCompound(j);
|
CompoundTag tagSection = tagSections.getCompound(j);
|
||||||
int sectionYPos = tagSection.getByte("Y");
|
int sectionYPos = tagSection.getByte("Y");
|
||||||
|
|
||||||
#if PRE_MC_1_18_1
|
#if PRE_MC_1_18_2
|
||||||
if (tagSection.contains("Palette", 9) && tagSection.contains("BlockStates", 12)) {
|
if (tagSection.contains("Palette", 9) && tagSection.contains("BlockStates", 12)) {
|
||||||
LevelChunkSection levelChunkSection = new LevelChunkSection(sectionYPos << 4);
|
LevelChunkSection levelChunkSection = new LevelChunkSection(sectionYPos << 4);
|
||||||
levelChunkSection.getStates().read(tagSection.getList("Palette", 10),
|
levelChunkSection.getStates().read(tagSection.getList("Palette", 10),
|
||||||
@@ -225,7 +225,7 @@ public class ChunkLoader
|
|||||||
|
|
||||||
public static LevelChunk read(WorldGenLevel level, LevelLightEngine lightEngine, ChunkPos chunkPos, CompoundTag chunkData)
|
public static LevelChunk read(WorldGenLevel level, LevelLightEngine lightEngine, ChunkPos chunkPos, CompoundTag chunkData)
|
||||||
{
|
{
|
||||||
#if PRE_MC_1_18_1
|
#if PRE_MC_1_18_2
|
||||||
CompoundTag tagLevel = chunkData.getCompound("Level");
|
CompoundTag tagLevel = chunkData.getCompound("Level");
|
||||||
#else
|
#else
|
||||||
CompoundTag tagLevel = chunkData;
|
CompoundTag tagLevel = chunkData;
|
||||||
@@ -238,12 +238,12 @@ public class ChunkLoader
|
|||||||
}
|
}
|
||||||
|
|
||||||
ChunkStatus.ChunkType chunkType = readChunkType(tagLevel);
|
ChunkStatus.ChunkType chunkType = readChunkType(tagLevel);
|
||||||
#if PRE_MC_1_18_1
|
#if PRE_MC_1_18_2
|
||||||
if (chunkType != ChunkStatus.ChunkType.LEVELCHUNK)
|
if (chunkType != ChunkStatus.ChunkType.LEVELCHUNK)
|
||||||
return null;
|
return null;
|
||||||
#else
|
#else
|
||||||
BlendingData blendingData = readBlendingData(tagLevel);
|
BlendingData blendingData = readBlendingData(tagLevel);
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
if (chunkType == ChunkStatus.ChunkType.PROTOCHUNK && (blendingData == null || !blendingData.oldNoise()))
|
if (chunkType == ChunkStatus.ChunkType.PROTOCHUNK && (blendingData == null || !blendingData.oldNoise()))
|
||||||
return null;
|
return null;
|
||||||
#else
|
#else
|
||||||
@@ -261,7 +261,7 @@ public class ChunkLoader
|
|||||||
|
|
||||||
boolean isLightOn = tagLevel.getBoolean("isLightOn");
|
boolean isLightOn = tagLevel.getBoolean("isLightOn");
|
||||||
if (isLightOn) lightEngine.retainData(chunkPos, true);
|
if (isLightOn) lightEngine.retainData(chunkPos, true);
|
||||||
#if PRE_MC_1_18_1
|
#if PRE_MC_1_18_2
|
||||||
ChunkBiomeContainer chunkBiomeContainer = new ChunkBiomeContainer(
|
ChunkBiomeContainer chunkBiomeContainer = new ChunkBiomeContainer(
|
||||||
level.getLevel().registryAccess().registryOrThrow(Registry.BIOME_REGISTRY)#if POST_MC_1_17_1, level #endif,
|
level.getLevel().registryAccess().registryOrThrow(Registry.BIOME_REGISTRY)#if POST_MC_1_17_1, level #endif,
|
||||||
chunkPos, level.getLevel().getChunkSource().getGenerator().getBiomeSource(),
|
chunkPos, level.getLevel().getChunkSource().getGenerator().getBiomeSource(),
|
||||||
@@ -293,7 +293,7 @@ public class ChunkLoader
|
|||||||
LevelChunkSection[] levelChunkSections = readSections(level, lightEngine, chunkPos, tagLevel);
|
LevelChunkSection[] levelChunkSections = readSections(level, lightEngine, chunkPos, tagLevel);
|
||||||
|
|
||||||
// ====================== Make the chunk =========================
|
// ====================== Make the chunk =========================
|
||||||
#if PRE_MC_1_18_1
|
#if PRE_MC_1_18_2
|
||||||
LevelChunk chunk = new LevelChunk((Level) level.getLevel(), chunkPos, chunkBiomeContainer, upgradeData, blockTicks,
|
LevelChunk chunk = new LevelChunk((Level) level.getLevel(), chunkPos, chunkBiomeContainer, upgradeData, blockTicks,
|
||||||
fluidTicks, inhabitedTime, levelChunkSections, null);
|
fluidTicks, inhabitedTime, levelChunkSections, null);
|
||||||
#else
|
#else
|
||||||
|
|||||||
+4
-4
@@ -66,7 +66,7 @@ public class LightedWorldGenRegion extends WorldGenRegion
|
|||||||
private final List<ChunkAccess> cache;
|
private final List<ChunkAccess> cache;
|
||||||
Long2ObjectOpenHashMap<ChunkAccess> chunkMap = new Long2ObjectOpenHashMap<ChunkAccess>();
|
Long2ObjectOpenHashMap<ChunkAccess> chunkMap = new Long2ObjectOpenHashMap<ChunkAccess>();
|
||||||
|
|
||||||
#if PRE_MC_1_18_1
|
#if PRE_MC_1_18_2
|
||||||
private ChunkPos overrideCenterPos = null;
|
private ChunkPos overrideCenterPos = null;
|
||||||
|
|
||||||
public void setOverrideCenter(ChunkPos pos) {overrideCenterPos = pos;}
|
public void setOverrideCenter(ChunkPos pos) {overrideCenterPos = pos;}
|
||||||
@@ -114,7 +114,7 @@ public class LightedWorldGenRegion extends WorldGenRegion
|
|||||||
if (k > this.writeRadius || l > this.writeRadius) {
|
if (k > this.writeRadius || l > this.writeRadius) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
if (center.isUpgrading()) {
|
if (center.isUpgrading()) {
|
||||||
LevelHeightAccessor levelHeightAccessor = center.getHeightAccessorForGeneration();
|
LevelHeightAccessor levelHeightAccessor = center.getHeightAccessorForGeneration();
|
||||||
if (blockPos.getY() < levelHeightAccessor.getMinBuildHeight() || blockPos.getY() >= levelHeightAccessor.getMaxBuildHeight()) {
|
if (blockPos.getY() < levelHeightAccessor.getMinBuildHeight() || blockPos.getY() >= levelHeightAccessor.getMaxBuildHeight()) {
|
||||||
@@ -220,7 +220,7 @@ public class LightedWorldGenRegion extends WorldGenRegion
|
|||||||
public ChunkAccess getChunk(int i, int j, ChunkStatus chunkStatus, boolean bl) {
|
public ChunkAccess getChunk(int i, int j, ChunkStatus chunkStatus, boolean bl) {
|
||||||
ChunkAccess chunk = getChunkAccess(i, j, chunkStatus, bl);
|
ChunkAccess chunk = getChunkAccess(i, j, chunkStatus, bl);
|
||||||
if (chunk instanceof LevelChunk) {
|
if (chunk instanceof LevelChunk) {
|
||||||
chunk = new ImposterProtoChunk((LevelChunk) chunk #if POST_MC_1_18_1, true #endif);
|
chunk = new ImposterProtoChunk((LevelChunk) chunk #if POST_MC_1_18_2, true #endif);
|
||||||
}
|
}
|
||||||
return chunk;
|
return chunk;
|
||||||
}
|
}
|
||||||
@@ -284,7 +284,7 @@ public class LightedWorldGenRegion extends WorldGenRegion
|
|||||||
|
|
||||||
public int calculateBlockTint(BlockPos blockPos, ColorResolver colorResolver)
|
public int calculateBlockTint(BlockPos blockPos, ColorResolver colorResolver)
|
||||||
{
|
{
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
int i = (Minecraft.getInstance()).options.biomeBlendRadius;
|
int i = (Minecraft.getInstance()).options.biomeBlendRadius;
|
||||||
#else
|
#else
|
||||||
int i = (Minecraft.getInstance()).options.biomeBlendRadius().get();
|
int i = (Minecraft.getInstance()).options.biomeBlendRadius().get();
|
||||||
|
|||||||
+1
-1
@@ -221,7 +221,7 @@ public class WorldGenLevelLightEngine extends LevelLightEngine {
|
|||||||
if (!LevelChunkSection.isEmpty(levelChunkSection)) {
|
if (!LevelChunkSection.isEmpty(levelChunkSection)) {
|
||||||
updateSectionStatus(SectionPos.of(chunkPos, i), false);
|
updateSectionStatus(SectionPos.of(chunkPos, i), false);
|
||||||
}
|
}
|
||||||
#elif PRE_MC_1_18_1
|
#elif PRE_MC_1_18_2
|
||||||
if (!LevelChunkSection.isEmpty(levelChunkSection)) {
|
if (!LevelChunkSection.isEmpty(levelChunkSection)) {
|
||||||
int j = this.levelHeightAccessor.getSectionYFromSectionIndex(i);
|
int j = this.levelHeightAccessor.getSectionYFromSectionIndex(i);
|
||||||
updateSectionStatus(SectionPos.of(chunkPos, j), false);
|
updateSectionStatus(SectionPos.of(chunkPos, j), false);
|
||||||
|
|||||||
+14
-12
@@ -37,41 +37,43 @@ import net.minecraft.world.level.WorldGenLevel;
|
|||||||
import net.minecraft.world.level.chunk.ChunkAccess;
|
import net.minecraft.world.level.chunk.ChunkAccess;
|
||||||
import net.minecraft.world.level.chunk.ChunkStatus;
|
import net.minecraft.world.level.chunk.ChunkStatus;
|
||||||
import net.minecraft.world.level.levelgen.WorldGenSettings;
|
import net.minecraft.world.level.levelgen.WorldGenSettings;
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
import net.minecraft.world.level.levelgen.feature.ConfiguredStructureFeature;
|
import net.minecraft.world.level.levelgen.feature.ConfiguredStructureFeature;
|
||||||
import net.minecraft.world.level.StructureFeatureManager;
|
import net.minecraft.world.level.StructureFeatureManager;
|
||||||
#else
|
#else
|
||||||
|
#if POST_MC_1_19_4
|
||||||
import net.minecraft.world.level.levelgen.WorldOptions;
|
import net.minecraft.world.level.levelgen.WorldOptions;
|
||||||
|
#endif
|
||||||
import net.minecraft.world.level.levelgen.structure.Structure;
|
import net.minecraft.world.level.levelgen.structure.Structure;
|
||||||
import net.minecraft.world.level.StructureManager;
|
import net.minecraft.world.level.StructureManager;
|
||||||
#endif
|
#endif
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
import net.minecraft.world.level.levelgen.structure.StructureCheck;
|
import net.minecraft.world.level.levelgen.structure.StructureCheck;
|
||||||
#endif
|
#endif
|
||||||
import net.minecraft.world.level.levelgen.structure.StructureStart;
|
import net.minecraft.world.level.levelgen.structure.StructureStart;
|
||||||
|
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
public class WorldGenStructFeatManager extends StructureFeatureManager {
|
public class WorldGenStructFeatManager extends StructureFeatureManager {
|
||||||
#else
|
#else
|
||||||
public class WorldGenStructFeatManager extends StructureManager {
|
public class WorldGenStructFeatManager extends StructureManager {
|
||||||
#endif
|
#endif
|
||||||
final WorldGenLevel genLevel;
|
final WorldGenLevel genLevel;
|
||||||
|
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_4
|
||||||
WorldGenSettings worldGenSettings;
|
WorldGenSettings worldGenSettings;
|
||||||
#else
|
#else
|
||||||
WorldOptions worldOptions;
|
WorldOptions worldOptions;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
StructureCheck structureCheck;
|
StructureCheck structureCheck;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_4
|
||||||
public WorldGenStructFeatManager(WorldGenSettings worldGenSettings,
|
public WorldGenStructFeatManager(WorldGenSettings worldGenSettings,
|
||||||
WorldGenLevel genLevel #if POST_MC_1_18_1 , StructureCheck structureCheck #endif ) {
|
WorldGenLevel genLevel #if POST_MC_1_18_2 , StructureCheck structureCheck #endif ) {
|
||||||
|
|
||||||
super(genLevel, worldGenSettings #if POST_MC_1_18_1 , structureCheck #endif );
|
super(genLevel, worldGenSettings #if POST_MC_1_18_2 , structureCheck #endif );
|
||||||
this.genLevel = genLevel;
|
this.genLevel = genLevel;
|
||||||
this.worldGenSettings = worldGenSettings;
|
this.worldGenSettings = worldGenSettings;
|
||||||
}
|
}
|
||||||
@@ -89,8 +91,8 @@ public class WorldGenStructFeatManager extends StructureManager {
|
|||||||
public WorldGenStructFeatManager forWorldGenRegion(WorldGenRegion worldGenRegion) {
|
public WorldGenStructFeatManager forWorldGenRegion(WorldGenRegion worldGenRegion) {
|
||||||
if (worldGenRegion == genLevel)
|
if (worldGenRegion == genLevel)
|
||||||
return this;
|
return this;
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_4
|
||||||
return new WorldGenStructFeatManager(worldGenSettings, worldGenRegion #if POST_MC_1_18_1 , structureCheck #endif );
|
return new WorldGenStructFeatManager(worldGenSettings, worldGenRegion #if POST_MC_1_18_2 , structureCheck #endif );
|
||||||
#else
|
#else
|
||||||
return new WorldGenStructFeatManager(worldOptions, worldGenRegion, structureCheck);
|
return new WorldGenStructFeatManager(worldOptions, worldGenRegion, structureCheck);
|
||||||
#endif
|
#endif
|
||||||
@@ -101,7 +103,7 @@ public class WorldGenStructFeatManager extends StructureManager {
|
|||||||
return genLevel.getChunk(x, z, status, false);
|
return genLevel.getChunk(x, z, status, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if PRE_MC_1_18_1
|
#if PRE_MC_1_18_2
|
||||||
@Override
|
@Override
|
||||||
public Stream<? extends StructureStart<?>> startsForFeature(SectionPos sectionPos2,
|
public Stream<? extends StructureStart<?>> startsForFeature(SectionPos sectionPos2,
|
||||||
StructureFeature<?> structureFeature) {
|
StructureFeature<?> structureFeature) {
|
||||||
@@ -149,7 +151,7 @@ public class WorldGenStructFeatManager extends StructureManager {
|
|||||||
return builder.build();
|
return builder.build();
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
@Override
|
@Override
|
||||||
public List<StructureStart> startsForFeature(SectionPos sectionPos, Predicate<ConfiguredStructureFeature<?, ?>> predicate) {
|
public List<StructureStart> startsForFeature(SectionPos sectionPos, Predicate<ConfiguredStructureFeature<?, ?>> predicate) {
|
||||||
ChunkAccess chunk = _getChunk(sectionPos.x(), sectionPos.z(), ChunkStatus.STRUCTURE_REFERENCES);
|
ChunkAccess chunk = _getChunk(sectionPos.x(), sectionPos.z(), ChunkStatus.STRUCTURE_REFERENCES);
|
||||||
|
|||||||
+4
-4
@@ -26,12 +26,12 @@ import com.seibel.distanthorizons.common.wrappers.worldGeneration.BatchGeneratio
|
|||||||
import com.seibel.distanthorizons.common.wrappers.worldGeneration.ThreadedParameters;
|
import com.seibel.distanthorizons.common.wrappers.worldGeneration.ThreadedParameters;
|
||||||
|
|
||||||
import net.minecraft.server.level.WorldGenRegion;
|
import net.minecraft.server.level.WorldGenRegion;
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
#endif
|
#endif
|
||||||
import net.minecraft.world.level.chunk.ChunkAccess;
|
import net.minecraft.world.level.chunk.ChunkAccess;
|
||||||
import net.minecraft.world.level.chunk.ChunkStatus;
|
import net.minecraft.world.level.chunk.ChunkStatus;
|
||||||
import net.minecraft.world.level.chunk.ProtoChunk;
|
import net.minecraft.world.level.chunk.ProtoChunk;
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
import net.minecraft.world.level.levelgen.blending.Blender;
|
import net.minecraft.world.level.levelgen.blending.Blender;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -64,12 +64,12 @@ public final class StepBiomes {
|
|||||||
|
|
||||||
for (ChunkAccess chunk : chunksToDo) {
|
for (ChunkAccess chunk : chunksToDo) {
|
||||||
// System.out.println("StepBiomes: "+chunk.getPos());
|
// System.out.println("StepBiomes: "+chunk.getPos());
|
||||||
#if PRE_MC_1_18_1
|
#if PRE_MC_1_18_2
|
||||||
environment.params.generator.createBiomes(environment.params.biomes, chunk);
|
environment.params.generator.createBiomes(environment.params.biomes, chunk);
|
||||||
#elif PRE_MC_1_19
|
#elif PRE_MC_1_19
|
||||||
chunk = environment.joinSync(environment.params.generator.createBiomes(environment.params.biomes, Runnable::run, Blender.of(worldGenRegion),
|
chunk = environment.joinSync(environment.params.generator.createBiomes(environment.params.biomes, Runnable::run, Blender.of(worldGenRegion),
|
||||||
tParams.structFeat.forWorldGenRegion(worldGenRegion), chunk));
|
tParams.structFeat.forWorldGenRegion(worldGenRegion), chunk));
|
||||||
#elif PRE_MC_1_19_3
|
#elif PRE_MC_1_19_4
|
||||||
chunk = environment.joinSync(environment.params.generator.createBiomes(environment.params.biomes, Runnable::run, environment.params.randomState, Blender.of(worldGenRegion),
|
chunk = environment.joinSync(environment.params.generator.createBiomes(environment.params.biomes, Runnable::run, environment.params.randomState, Blender.of(worldGenRegion),
|
||||||
tParams.structFeat.forWorldGenRegion(worldGenRegion), chunk));
|
tParams.structFeat.forWorldGenRegion(worldGenRegion), chunk));
|
||||||
#else
|
#else
|
||||||
|
|||||||
+2
-2
@@ -31,7 +31,7 @@ import net.minecraft.world.level.chunk.ChunkAccess;
|
|||||||
import net.minecraft.world.level.chunk.ChunkStatus;
|
import net.minecraft.world.level.chunk.ChunkStatus;
|
||||||
import net.minecraft.world.level.chunk.ProtoChunk;
|
import net.minecraft.world.level.chunk.ProtoChunk;
|
||||||
import net.minecraft.world.level.levelgen.Heightmap;
|
import net.minecraft.world.level.levelgen.Heightmap;
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
public final class StepFeatures {
|
public final class StepFeatures {
|
||||||
@@ -62,7 +62,7 @@ public final class StepFeatures {
|
|||||||
|
|
||||||
for (ChunkAccess chunk : chunksToDo) {
|
for (ChunkAccess chunk : chunksToDo) {
|
||||||
try {
|
try {
|
||||||
#if PRE_MC_1_18_1
|
#if PRE_MC_1_18_2
|
||||||
worldGenRegion.setOverrideCenter(chunk.getPos());
|
worldGenRegion.setOverrideCenter(chunk.getPos());
|
||||||
environment.params.generator.applyBiomeDecoration(worldGenRegion, tParams.structFeat);
|
environment.params.generator.applyBiomeDecoration(worldGenRegion, tParams.structFeat);
|
||||||
Heightmap.primeHeightmaps(chunk, STATUS.heightmapsAfter());
|
Heightmap.primeHeightmaps(chunk, STATUS.heightmapsAfter());
|
||||||
|
|||||||
+1
-1
@@ -72,7 +72,7 @@ public final class StepLight {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
#if POST_MC_1_18_1 && PRE_MC_1_20_1
|
#if POST_MC_1_18_2 && PRE_MC_1_20_1
|
||||||
if (chunk instanceof LevelChunk) ((LevelChunk)chunk).setClientLightReady(true);
|
if (chunk instanceof LevelChunk) ((LevelChunk)chunk).setClientLightReady(true);
|
||||||
#elif POST_MC_1_20_1
|
#elif POST_MC_1_20_1
|
||||||
lightEngine.setLightEnabled(chunk.getPos(), true);
|
lightEngine.setLightEnabled(chunk.getPos(), true);
|
||||||
|
|||||||
+3
-3
@@ -29,12 +29,12 @@ import com.seibel.distanthorizons.core.util.objects.UncheckedInterruptedExceptio
|
|||||||
import net.minecraft.server.level.WorldGenRegion;
|
import net.minecraft.server.level.WorldGenRegion;
|
||||||
#if POST_MC_1_17_1
|
#if POST_MC_1_17_1
|
||||||
#endif
|
#endif
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
#endif
|
#endif
|
||||||
import net.minecraft.world.level.chunk.ChunkAccess;
|
import net.minecraft.world.level.chunk.ChunkAccess;
|
||||||
import net.minecraft.world.level.chunk.ChunkStatus;
|
import net.minecraft.world.level.chunk.ChunkStatus;
|
||||||
import net.minecraft.world.level.chunk.ProtoChunk;
|
import net.minecraft.world.level.chunk.ProtoChunk;
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
import net.minecraft.world.level.levelgen.blending.Blender;
|
import net.minecraft.world.level.levelgen.blending.Blender;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ public final class StepNoise {
|
|||||||
// System.out.println("StepNoise: "+chunk.getPos());
|
// System.out.println("StepNoise: "+chunk.getPos());
|
||||||
#if PRE_MC_1_17_1
|
#if PRE_MC_1_17_1
|
||||||
environment.params.generator.fillFromNoise(worldGenRegion, tParams.structFeat, chunk);
|
environment.params.generator.fillFromNoise(worldGenRegion, tParams.structFeat, chunk);
|
||||||
#elif PRE_MC_1_18_1
|
#elif PRE_MC_1_18_2
|
||||||
chunk = environment.joinSync(environment.params.generator.fillFromNoise(Runnable::run,
|
chunk = environment.joinSync(environment.params.generator.fillFromNoise(Runnable::run,
|
||||||
tParams.structFeat.forWorldGenRegion(worldGenRegion), chunk));
|
tParams.structFeat.forWorldGenRegion(worldGenRegion), chunk));
|
||||||
#elif PRE_MC_1_19
|
#elif PRE_MC_1_19
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ import com.seibel.distanthorizons.common.wrappers.worldGeneration.BatchGeneratio
|
|||||||
import com.seibel.distanthorizons.common.wrappers.worldGeneration.ThreadedParameters;
|
import com.seibel.distanthorizons.common.wrappers.worldGeneration.ThreadedParameters;
|
||||||
|
|
||||||
import net.minecraft.server.level.WorldGenRegion;
|
import net.minecraft.server.level.WorldGenRegion;
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
#endif
|
#endif
|
||||||
import net.minecraft.world.level.chunk.ChunkAccess;
|
import net.minecraft.world.level.chunk.ChunkAccess;
|
||||||
import net.minecraft.world.level.chunk.ChunkStatus;
|
import net.minecraft.world.level.chunk.ChunkStatus;
|
||||||
|
|||||||
+7
-5
@@ -72,18 +72,20 @@ public final class StepStructureStart
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
if (environment.params.worldGenSettings.generateFeatures()) {
|
if (environment.params.worldGenSettings.generateFeatures()) {
|
||||||
#elif POST_MC_1_19
|
#elif PRE_MC_1_19_4
|
||||||
|
if (environment.params.worldGenSettings.generateStructures()) {
|
||||||
|
#else
|
||||||
if (environment.params.worldOptions.generateStructures()) {
|
if (environment.params.worldOptions.generateStructures()) {
|
||||||
#endif
|
#endif
|
||||||
for (ChunkAccess chunk : chunksToDo)
|
for (ChunkAccess chunk : chunksToDo)
|
||||||
{
|
{
|
||||||
// System.out.println("StepStructureStart: "+chunk.getPos());
|
// System.out.println("StepStructureStart: "+chunk.getPos());
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
environment.params.generator.createStructures(environment.params.registry, tParams.structFeat, chunk, environment.params.structures,
|
environment.params.generator.createStructures(environment.params.registry, tParams.structFeat, chunk, environment.params.structures,
|
||||||
environment.params.worldSeed);
|
environment.params.worldSeed);
|
||||||
#elif PRE_MC_1_19_3
|
#elif PRE_MC_1_19_4
|
||||||
environment.params.generator.createStructures(environment.params.registry, environment.params.randomState, tParams.structFeat, chunk, environment.params.structures,
|
environment.params.generator.createStructures(environment.params.registry, environment.params.randomState, tParams.structFeat, chunk, environment.params.structures,
|
||||||
environment.params.worldSeed);
|
environment.params.worldSeed);
|
||||||
#else
|
#else
|
||||||
@@ -91,7 +93,7 @@ public final class StepStructureStart
|
|||||||
environment.params.level.getChunkSource().getGeneratorState(),
|
environment.params.level.getChunkSource().getGeneratorState(),
|
||||||
tParams.structFeat, chunk, environment.params.structures);
|
tParams.structFeat, chunk, environment.params.structures);
|
||||||
#endif
|
#endif
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
tParams.structCheck.onStructureLoad(chunk.getPos(), chunk.getAllStarts());
|
tParams.structCheck.onStructureLoad(chunk.getPos(), chunk.getAllStarts());
|
||||||
|
|||||||
+1
-1
@@ -58,7 +58,7 @@ public final class StepSurface {
|
|||||||
|
|
||||||
for (ChunkAccess chunk : chunksToDo) {
|
for (ChunkAccess chunk : chunksToDo) {
|
||||||
// System.out.println("StepSurface: "+chunk.getPos());
|
// System.out.println("StepSurface: "+chunk.getPos());
|
||||||
#if PRE_MC_1_18_1
|
#if PRE_MC_1_18_2
|
||||||
environment.params.generator.buildSurfaceAndBedrock(worldGenRegion, chunk);
|
environment.params.generator.buildSurfaceAndBedrock(worldGenRegion, chunk);
|
||||||
#elif PRE_MC_1_19
|
#elif PRE_MC_1_19
|
||||||
environment.params.generator.buildSurface(worldGenRegion, tParams.structFeat.forWorldGenRegion(worldGenRegion), chunk);
|
environment.params.generator.buildSurface(worldGenRegion, tParams.structFeat.forWorldGenRegion(worldGenRegion), chunk);
|
||||||
|
|||||||
@@ -0,0 +1,39 @@
|
|||||||
|
accessWidener v1 named
|
||||||
|
|
||||||
|
# used when determining where to save files to
|
||||||
|
accessible field net/minecraft/world/level/storage/DimensionDataStorage dataFolder Ljava/io/File;
|
||||||
|
|
||||||
|
# used when rendering
|
||||||
|
accessible method net/minecraft/client/renderer/GameRenderer getFov (Lnet/minecraft/client/Camera;FZ)D
|
||||||
|
|
||||||
|
# used for grabbing vanilla rendered chunks
|
||||||
|
accessible field net/minecraft/client/renderer/LevelRenderer renderChunkStorage Ljava/util/concurrent/atomic/AtomicReference;
|
||||||
|
accessible class net/minecraft/client/renderer/LevelRenderer$RenderChunkStorage
|
||||||
|
accessible class net/minecraft/client/renderer/LevelRenderer$RenderChunkInfo
|
||||||
|
accessible field net/minecraft/client/renderer/LevelRenderer$RenderChunkInfo chunk Lnet/minecraft/client/renderer/chunk/ChunkRenderDispatcher$RenderChunk;
|
||||||
|
|
||||||
|
# world generation
|
||||||
|
accessible method net/minecraft/world/level/lighting/LayerLightEngine queueSectionData (JLnet/minecraft/world/level/chunk/DataLayer;Z)V
|
||||||
|
accessible field net/minecraft/world/level/chunk/LevelChunk loaded Z
|
||||||
|
|
||||||
|
# lod generation from save file
|
||||||
|
accessible field net/minecraft/world/level/chunk/storage/ChunkStorage worker Lnet/minecraft/world/level/chunk/storage/IOWorker;
|
||||||
|
accessible field net/minecraft/world/level/chunk/storage/IOWorker storage Lnet/minecraft/world/level/chunk/storage/RegionFileStorage;
|
||||||
|
accessible field net/minecraft/world/level/chunk/storage/RegionFileStorage regionCache Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
|
||||||
|
accessible field net/minecraft/world/level/chunk/storage/RegionFileStorage folder Ljava/nio/file/Path;
|
||||||
|
|
||||||
|
# grabbing textures
|
||||||
|
accessible field net/minecraft/client/renderer/texture/TextureAtlasSprite animatedTexture Lnet/minecraft/client/renderer/texture/TextureAtlasSprite$AnimatedTexture;
|
||||||
|
accessible field net/minecraft/client/renderer/texture/TextureAtlasSprite width I
|
||||||
|
accessible field net/minecraft/client/renderer/texture/TextureAtlasSprite height I
|
||||||
|
accessible field net/minecraft/client/renderer/texture/TextureAtlasSprite mainImage [Lcom/mojang/blaze3d/platform/NativeImage;
|
||||||
|
accessible class net/minecraft/client/renderer/texture/TextureAtlasSprite$AnimatedTexture
|
||||||
|
accessible method net/minecraft/client/renderer/texture/TextureAtlasSprite$AnimatedTexture getFrameX (I)I
|
||||||
|
accessible method net/minecraft/client/renderer/texture/TextureAtlasSprite$AnimatedTexture getFrameY (I)I
|
||||||
|
extendable class com/mojang/math/Matrix4f
|
||||||
|
|
||||||
|
|
||||||
|
# hacky stuff
|
||||||
|
accessible field net/minecraft/util/ThreadingDetector lock Ljava/util/concurrent/Semaphore;
|
||||||
|
mutable field net/minecraft/util/ThreadingDetector lock Ljava/util/concurrent/Semaphore;
|
||||||
|
accessible field net/minecraft/client/gui/components/AbstractSelectionList scrollAmount D # Hack to bypass vanilla's setScrollAmount's clamp
|
||||||
+1
-1
Submodule coreSubProjects updated: 98634e2a0b...e2a3f23e91
@@ -97,7 +97,7 @@ public class FabricClientProxy
|
|||||||
|
|
||||||
// ClientChunkLoadEvent
|
// ClientChunkLoadEvent
|
||||||
// TODO: Is using setClientLightReady one still better?
|
// TODO: Is using setClientLightReady one still better?
|
||||||
//#if PRE_MC_1_18_1 // in 1.18+, we use mixin hook in setClientLightReady(true)
|
//#if PRE_MC_1_18_2 // in 1.18+, we use mixin hook in setClientLightReady(true)
|
||||||
ClientChunkEvents.CHUNK_LOAD.register((level, chunk) ->
|
ClientChunkEvents.CHUNK_LOAD.register((level, chunk) ->
|
||||||
{
|
{
|
||||||
ClientLevelWrapper wrappedLevel = ClientLevelWrapper.getWrapper(level);
|
ClientLevelWrapper wrappedLevel = ClientLevelWrapper.getWrapper(level);
|
||||||
|
|||||||
+2
-2
@@ -44,13 +44,13 @@ public class MixinClientLevel
|
|||||||
// @Inject(method = "<init>", at = @At("TAIL"))
|
// @Inject(method = "<init>", at = @At("TAIL"))
|
||||||
// private void loadWorldEvent(ClientPacketListener clientPacketListener, ClientLevel.ClientLevelData clientLevelData, ResourceKey resourceKey,
|
// private void loadWorldEvent(ClientPacketListener clientPacketListener, ClientLevel.ClientLevelData clientLevelData, ResourceKey resourceKey,
|
||||||
// #if POST_MC_1_18_2 Holder holder, #else DimensionType dimensionType, #endif int i,
|
// #if POST_MC_1_18_2 Holder holder, #else DimensionType dimensionType, #endif int i,
|
||||||
// #if POST_MC_1_18_1 int j, #endif Supplier supplier, LevelRenderer levelRenderer, boolean bl, long l, CallbackInfo ci)
|
// #if POST_MC_1_18_2 int j, #endif Supplier supplier, LevelRenderer levelRenderer, boolean bl, long l, CallbackInfo ci)
|
||||||
// {
|
// {
|
||||||
// ClientApi.INSTANCE.clientLevelLoadEvent(WorldWrapper.getWorldWrapper((ClientLevel)(Object)this));
|
// ClientApi.INSTANCE.clientLevelLoadEvent(WorldWrapper.getWorldWrapper((ClientLevel)(Object)this));
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// Moved to overriding the enableChunkLight(...) method over at ClientPacketListener for 1.20+
|
// Moved to overriding the enableChunkLight(...) method over at ClientPacketListener for 1.20+
|
||||||
#if POST_MC_1_18_1 && PRE_MC_1_20_1 // Only the setLightReady is only available after 1.18. This ensures the light data is ready.
|
#if POST_MC_1_18_2 && PRE_MC_1_20_1 // Only the setLightReady is only available after 1.18. This ensures the light data is ready.
|
||||||
@Inject(method = "setLightReady", at = @At("HEAD"))
|
@Inject(method = "setLightReady", at = @At("HEAD"))
|
||||||
private void onChunkLightReady(int x, int z, CallbackInfo ci)
|
private void onChunkLightReady(int x, int z, CallbackInfo ci)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -40,7 +40,7 @@ public class MixinClientPacketListener
|
|||||||
@Inject(method = "handleRespawn", at = @At("RETURN"))
|
@Inject(method = "handleRespawn", at = @At("RETURN"))
|
||||||
void onHandleRespawnEnd(CallbackInfo ci) { ClientApi.INSTANCE.clientLevelLoadEvent(ClientLevelWrapper.getWrapper(level)); }
|
void onHandleRespawnEnd(CallbackInfo ci) { ClientApi.INSTANCE.clientLevelLoadEvent(ClientLevelWrapper.getWrapper(level)); }
|
||||||
|
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_4
|
||||||
@Inject(method = "cleanup", at = @At("HEAD"))
|
@Inject(method = "cleanup", at = @At("HEAD"))
|
||||||
#else
|
#else
|
||||||
@Inject(method = "close", at = @At("HEAD"))
|
@Inject(method = "close", at = @At("HEAD"))
|
||||||
|
|||||||
+1
-1
@@ -47,7 +47,7 @@ public class MixinFogRenderer {
|
|||||||
private static final float A_EVEN_LARGER_VALUE = 42069420694206942069.F;
|
private static final float A_EVEN_LARGER_VALUE = 42069420694206942069.F;
|
||||||
|
|
||||||
@Inject(at = @At("RETURN"), method = "setupFog")
|
@Inject(at = @At("RETURN"), method = "setupFog")
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
private static void disableSetupFog(Camera camera, FogMode fogMode, float f, boolean bl, CallbackInfo callback) {
|
private static void disableSetupFog(Camera camera, FogMode fogMode, float f, boolean bl, CallbackInfo callback) {
|
||||||
#else
|
#else
|
||||||
private static void disableSetupFog(Camera camera, FogMode fogMode, float f, boolean bl, float g, CallbackInfo callback) {
|
private static void disableSetupFog(Camera camera, FogMode fogMode, float f, boolean bl, float g, CallbackInfo callback) {
|
||||||
|
|||||||
+2
-2
@@ -26,7 +26,7 @@ import com.seibel.distanthorizons.core.config.Config;
|
|||||||
import net.minecraft.client.gui.screens.OptionsScreen;
|
import net.minecraft.client.gui.screens.OptionsScreen;
|
||||||
import net.minecraft.client.gui.screens.Screen;
|
import net.minecraft.client.gui.screens.Screen;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
import net.minecraft.network.chat.TranslatableComponent;
|
import net.minecraft.network.chat.TranslatableComponent;
|
||||||
#endif
|
#endif
|
||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
@@ -68,7 +68,7 @@ public class MixinOptionsScreen extends Screen {
|
|||||||
// For now it goes to the client option by default
|
// For now it goes to the client option by default
|
||||||
(buttonWidget) -> Objects.requireNonNull(minecraft).setScreen(GetConfigScreen.getScreen(this)),
|
(buttonWidget) -> Objects.requireNonNull(minecraft).setScreen(GetConfigScreen.getScreen(this)),
|
||||||
// Add a title to the utton
|
// Add a title to the utton
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
new TranslatableComponent(ModInfo.ID + ".title")));
|
new TranslatableComponent(ModInfo.ID + ".title")));
|
||||||
#else
|
#else
|
||||||
Component.translatable(ModInfo.ID + ".title")));
|
Component.translatable(ModInfo.ID + ".title")));
|
||||||
|
|||||||
+1
-1
@@ -22,7 +22,7 @@ package com.seibel.distanthorizons.fabric.mixins.server;
|
|||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import net.minecraft.world.level.chunk.ChunkGenerator;
|
import net.minecraft.world.level.chunk.ChunkGenerator;
|
||||||
|
|
||||||
#if PRE_MC_1_18_1
|
#if PRE_MC_1_18_2
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -61,7 +61,7 @@ public class MixinUtilBackgroundThread
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
@Inject(method = "wrapThreadWithTaskName(Ljava/lang/String;Ljava/util/function/Supplier;)Ljava/util/function/Supplier;",
|
@Inject(method = "wrapThreadWithTaskName(Ljava/lang/String;Ljava/util/function/Supplier;)Ljava/util/function/Supplier;",
|
||||||
at = @At("HEAD"), cancellable = true)
|
at = @At("HEAD"), cancellable = true)
|
||||||
private static void overrideUtil$wrapThreadWithTaskNameForSupplier(String string, Supplier<?> r, CallbackInfoReturnable<Supplier<?>> ci)
|
private static void overrideUtil$wrapThreadWithTaskNameForSupplier(String string, Supplier<?> r, CallbackInfoReturnable<Supplier<?>> ci)
|
||||||
|
|||||||
+1
-1
@@ -22,7 +22,7 @@ package com.seibel.distanthorizons.fabric.mixins.server.unsafe;
|
|||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
|
|
||||||
//FIXME: Is this still needed?
|
//FIXME: Is this still needed?
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
|
|
||||||
import net.minecraft.util.ThreadingDetector;
|
import net.minecraft.util.ThreadingDetector;
|
||||||
import org.spongepowered.asm.mixin.Mutable;
|
import org.spongepowered.asm.mixin.Mutable;
|
||||||
|
|||||||
+1
-1
@@ -64,7 +64,7 @@ public class SodiumAccessor implements ISodiumAccessor {
|
|||||||
SodiumWorldRenderer renderer = SodiumWorldRenderer.instance();
|
SodiumWorldRenderer renderer = SodiumWorldRenderer.instance();
|
||||||
LevelHeightAccessor height = Minecraft.getInstance().level;
|
LevelHeightAccessor height = Minecraft.getInstance().level;
|
||||||
|
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
// 0b11 = Lighted chunk & loaded chunk
|
// 0b11 = Lighted chunk & loaded chunk
|
||||||
return renderer.getChunkTracker().getChunks(0b00).filter(
|
return renderer.getChunkTracker().getChunks(0b00).filter(
|
||||||
(long l) -> {
|
(long l) -> {
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ import com.seibel.distanthorizons.core.wrapperInterfaces.chunk.IChunkWrapper;
|
|||||||
import net.minecraft.world.level.LevelAccessor;
|
import net.minecraft.world.level.LevelAccessor;
|
||||||
|
|
||||||
import net.minecraft.client.multiplayer.ClientLevel;
|
import net.minecraft.client.multiplayer.ClientLevel;
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
import net.minecraftforge.event.world.ChunkEvent;
|
import net.minecraftforge.event.world.ChunkEvent;
|
||||||
import net.minecraftforge.event.world.WorldEvent;
|
import net.minecraftforge.event.world.WorldEvent;
|
||||||
#else
|
#else
|
||||||
@@ -54,7 +54,7 @@ import net.minecraftforge.eventbus.api.SubscribeEvent;
|
|||||||
*/
|
*/
|
||||||
public class ForgeClientProxy
|
public class ForgeClientProxy
|
||||||
{
|
{
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
private static LevelAccessor GetLevel(WorldEvent e) { return e.getWorld(); }
|
private static LevelAccessor GetLevel(WorldEvent e) { return e.getWorld(); }
|
||||||
#else
|
#else
|
||||||
private static LevelAccessor GetLevel(LevelEvent e) { return e.getLevel(); }
|
private static LevelAccessor GetLevel(LevelEvent e) { return e.getLevel(); }
|
||||||
@@ -117,7 +117,7 @@ public class ForgeClientProxy
|
|||||||
|
|
||||||
// Register KeyBindings
|
// Register KeyBindings
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void registerKeyBindings(#if PRE_MC_1_19 InputEvent.KeyInputEvent #else InputEvent.Key #endif event)
|
public void registerKeyBindings(#if PRE_MC_1_19_2 InputEvent.KeyInputEvent #else InputEvent.Key #endif event)
|
||||||
{
|
{
|
||||||
if (Minecraft.getInstance().player == null) return;
|
if (Minecraft.getInstance().player == null) return;
|
||||||
if (event.getAction() != GLFW.GLFW_PRESS) return;
|
if (event.getAction() != GLFW.GLFW_PRESS) return;
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ import com.seibel.distanthorizons.forge.wrappers.modAccessor.OptifineAccessor;
|
|||||||
|
|
||||||
import net.minecraft.client.renderer.block.model.BakedQuad;
|
import net.minecraft.client.renderer.block.model.BakedQuad;
|
||||||
import net.minecraft.core.Direction;
|
import net.minecraft.core.Direction;
|
||||||
#if POST_MC_1_19
|
#if POST_MC_1_19_2
|
||||||
import net.minecraft.util.RandomSource;
|
import net.minecraft.util.RandomSource;
|
||||||
#endif
|
#endif
|
||||||
import net.minecraft.world.level.ColorResolver;
|
import net.minecraft.world.level.ColorResolver;
|
||||||
@@ -63,7 +63,7 @@ import net.minecraftforge.client.ConfigScreenHandler;
|
|||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
|
|
||||||
// these imports change due to forge refactoring classes in 1.19
|
// these imports change due to forge refactoring classes in 1.19
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
import net.minecraftforge.client.model.data.ModelDataMap;
|
import net.minecraftforge.client.model.data.ModelDataMap;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
#else
|
#else
|
||||||
@@ -168,13 +168,13 @@ public class ForgeMain implements LodForgeMethodCaller
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
public List<BakedQuad> getQuads(MinecraftClientWrapper mc, Block block, BlockState blockState, Direction direction, Random random) {
|
public List<BakedQuad> getQuads(MinecraftClientWrapper mc, Block block, BlockState blockState, Direction direction, Random random) {
|
||||||
return mc.getModelManager().getBlockModelShaper().getBlockModel(block.defaultBlockState()).getQuads(blockState, direction, random, modelData);
|
return mc.getModelManager().getBlockModelShaper().getBlockModel(block.defaultBlockState()).getQuads(blockState, direction, random, modelData);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
public List<BakedQuad> getQuads(MinecraftClientWrapper mc, Block block, BlockState blockState, Direction direction, RandomSource random) {
|
public List<BakedQuad> getQuads(MinecraftClientWrapper mc, Block block, BlockState blockState, Direction direction, RandomSource random) {
|
||||||
return mc.getModelManager().getBlockModelShaper().getBlockModel(block.defaultBlockState()).getQuads(blockState, direction, random, modelData #if POST_MC_1_19, RenderType.solid() #endif);
|
return mc.getModelManager().getBlockModelShaper().getBlockModel(block.defaultBlockState()).getQuads(blockState, direction, random, modelData #if POST_MC_1_19_2, RenderType.solid() #endif);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import net.minecraft.world.level.LevelAccessor;
|
|||||||
import net.minecraftforge.event.TickEvent;
|
import net.minecraftforge.event.TickEvent;
|
||||||
import net.minecraftforge.event.server.ServerAboutToStartEvent;
|
import net.minecraftforge.event.server.ServerAboutToStartEvent;
|
||||||
import net.minecraftforge.event.server.ServerStoppingEvent;
|
import net.minecraftforge.event.server.ServerStoppingEvent;
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
import net.minecraftforge.event.world.ChunkEvent;
|
import net.minecraftforge.event.world.ChunkEvent;
|
||||||
import net.minecraftforge.event.world.WorldEvent;
|
import net.minecraftforge.event.world.WorldEvent;
|
||||||
#else
|
#else
|
||||||
@@ -31,7 +31,7 @@ import java.util.function.Supplier;
|
|||||||
|
|
||||||
public class ForgeServerProxy
|
public class ForgeServerProxy
|
||||||
{
|
{
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
private static LevelAccessor GetLevel(WorldEvent e) { return e.getWorld(); }
|
private static LevelAccessor GetLevel(WorldEvent e) { return e.getWorld(); }
|
||||||
#else
|
#else
|
||||||
private static LevelAccessor GetLevel(LevelEvent e) { return e.getLevel(); }
|
private static LevelAccessor GetLevel(LevelEvent e) { return e.getLevel(); }
|
||||||
|
|||||||
+1
-1
@@ -38,7 +38,7 @@ public class MixinClientPacketListener
|
|||||||
@Inject(method = "handleRespawn", at = @At("RETURN"))
|
@Inject(method = "handleRespawn", at = @At("RETURN"))
|
||||||
void onHandleRespawnEnd(CallbackInfo ci) { ClientApi.INSTANCE.clientLevelLoadEvent(ClientLevelWrapper.getWrapper(level)); }
|
void onHandleRespawnEnd(CallbackInfo ci) { ClientApi.INSTANCE.clientLevelLoadEvent(ClientLevelWrapper.getWrapper(level)); }
|
||||||
|
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_4
|
||||||
@Inject(method = "cleanup", at = @At("HEAD"))
|
@Inject(method = "cleanup", at = @At("HEAD"))
|
||||||
#else
|
#else
|
||||||
@Inject(method = "close", at = @At("HEAD"))
|
@Inject(method = "close", at = @At("HEAD"))
|
||||||
|
|||||||
+2
-2
@@ -26,7 +26,7 @@ import com.seibel.distanthorizons.core.config.Config;
|
|||||||
import net.minecraft.client.gui.screens.OptionsScreen;
|
import net.minecraft.client.gui.screens.OptionsScreen;
|
||||||
import net.minecraft.client.gui.screens.Screen;
|
import net.minecraft.client.gui.screens.Screen;
|
||||||
import net.minecraft.network.chat.Component;
|
import net.minecraft.network.chat.Component;
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
import net.minecraft.network.chat.TranslatableComponent;
|
import net.minecraft.network.chat.TranslatableComponent;
|
||||||
#endif
|
#endif
|
||||||
import net.minecraft.resources.ResourceLocation;
|
import net.minecraft.resources.ResourceLocation;
|
||||||
@@ -68,7 +68,7 @@ public class MixinOptionsScreen extends Screen {
|
|||||||
// For now it goes to the client option by default
|
// For now it goes to the client option by default
|
||||||
(buttonWidget) -> Objects.requireNonNull(minecraft).setScreen(GetConfigScreen.getScreen(this)),
|
(buttonWidget) -> Objects.requireNonNull(minecraft).setScreen(GetConfigScreen.getScreen(this)),
|
||||||
// Add a title to the button
|
// Add a title to the button
|
||||||
#if PRE_MC_1_19
|
#if PRE_MC_1_19_2
|
||||||
new TranslatableComponent(ModInfo.ID + ".title")));
|
new TranslatableComponent(ModInfo.ID + ".title")));
|
||||||
#else
|
#else
|
||||||
Component.translatable(ModInfo.ID + ".title")));
|
Component.translatable(ModInfo.ID + ".title")));
|
||||||
|
|||||||
+1
-1
@@ -22,7 +22,7 @@ package com.seibel.distanthorizons.forge.mixins.server;
|
|||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import net.minecraft.world.level.chunk.ChunkGenerator;
|
import net.minecraft.world.level.chunk.ChunkGenerator;
|
||||||
|
|
||||||
#if PRE_MC_1_18_1
|
#if PRE_MC_1_18_2
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -61,7 +61,7 @@ public class MixinUtilBackgroundThread
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
@Inject(method = "wrapThreadWithTaskName(Ljava/lang/String;Ljava/util/function/Supplier;)Ljava/util/function/Supplier;",
|
@Inject(method = "wrapThreadWithTaskName(Ljava/lang/String;Ljava/util/function/Supplier;)Ljava/util/function/Supplier;",
|
||||||
at = @At("HEAD"), cancellable = true)
|
at = @At("HEAD"), cancellable = true)
|
||||||
private static void overrideUtil$wrapThreadWithTaskNameForSupplier(String string, Supplier<?> r, CallbackInfoReturnable<Supplier<?>> ci)
|
private static void overrideUtil$wrapThreadWithTaskNameForSupplier(String string, Supplier<?> r, CallbackInfoReturnable<Supplier<?>> ci)
|
||||||
|
|||||||
+1
-1
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
package com.seibel.distanthorizons.forge.mixins.server.unsafe;
|
package com.seibel.distanthorizons.forge.mixins.server.unsafe;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
#if POST_MC_1_18_1
|
#if POST_MC_1_18_2
|
||||||
|
|
||||||
import net.minecraft.util.ThreadingDetector;
|
import net.minecraft.util.ThreadingDetector;
|
||||||
import org.spongepowered.asm.mixin.Mutable;
|
import org.spongepowered.asm.mixin.Mutable;
|
||||||
|
|||||||
+1
-1
@@ -33,4 +33,4 @@ versionStr=
|
|||||||
|
|
||||||
# This defines what MC version Intellij will use for the preprocessor
|
# This defines what MC version Intellij will use for the preprocessor
|
||||||
# and what version is used automatically by build and run commands
|
# and what version is used automatically by build and run commands
|
||||||
mcVer=1.18.2
|
mcVer=1.19.2
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
# @Depricated
|
|
||||||
# Support will be removed soon
|
|
||||||
|
|
||||||
# 1.18.1 version
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#java_version = 17
|
|
||||||
#minecraft_version=1.18.1
|
|
||||||
#parchment_version=2022.03.06
|
|
||||||
#compatible_minecraft_versions=["1.18", "1.18.1"]
|
|
||||||
#accessWidenerVersion=1_18
|
|
||||||
#builds_for=fabric,forge
|
|
||||||
#
|
|
||||||
## Fabric loader
|
|
||||||
#fabric_loader_version=0.13.3
|
|
||||||
#fabric_api_version=0.46.6+1.18
|
|
||||||
# # Fabric mod versions
|
|
||||||
# modmenu_version=3.0.1
|
|
||||||
# starlight_version_fabric=3554912
|
|
||||||
# phosphor_version_fabric=3573395
|
|
||||||
# lithium_version=mc1.18.1-0.7.7
|
|
||||||
# sodium_version=mc1.18.1-0.4.0-alpha6
|
|
||||||
# iris_version=1.18.x-v1.2.5
|
|
||||||
# bclib_version=1.2.5
|
|
||||||
# immersive_portals_version=v1.0.4-1.18
|
|
||||||
#
|
|
||||||
# # Fabric mod run
|
|
||||||
# # 0 = Don't enable and don't run
|
|
||||||
# # 1 = Can be referenced in code but doesn't run
|
|
||||||
# # 2 = Can be referenced in code and runs in client
|
|
||||||
# enable_starlight=0
|
|
||||||
# enable_phosphor=0
|
|
||||||
# enable_sodium=1
|
|
||||||
# enable_lithium=0
|
|
||||||
# enable_iris=0
|
|
||||||
# enable_bclib=0
|
|
||||||
#
|
|
||||||
## Forge loader
|
|
||||||
#forge_version=39.1.2
|
|
||||||
# # Forge mod versions
|
|
||||||
# starlight_version_forge=3559934
|
|
||||||
# terraforged_version=
|
|
||||||
#
|
|
||||||
# # Forge mod run
|
|
||||||
# # 0 = Don't enable and don't run
|
|
||||||
# # 1 = Can be referenced in code but doesn't run
|
|
||||||
# # 2 = Can be referenced in code and runs in client
|
|
||||||
# enable_starlight_forge=0
|
|
||||||
# enable_terraforged=0
|
|
||||||
@@ -3,7 +3,7 @@ java_version = 17
|
|||||||
minecraft_version=1.19.2
|
minecraft_version=1.19.2
|
||||||
parchment_version=1.19.2:2022.11.27
|
parchment_version=1.19.2:2022.11.27
|
||||||
compatible_minecraft_versions=["1.19.2"]
|
compatible_minecraft_versions=["1.19.2"]
|
||||||
accessWidenerVersion=1_19
|
accessWidenerVersion=1_19_2
|
||||||
builds_for=fabric,forge
|
builds_for=fabric,forge
|
||||||
|
|
||||||
# Fabric loader
|
# Fabric loader
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ java_version = 17
|
|||||||
minecraft_version=1.19.4
|
minecraft_version=1.19.4
|
||||||
parchment_version=1.19.3:2023.03.12
|
parchment_version=1.19.3:2023.03.12
|
||||||
compatible_minecraft_versions=["1.19.4"]
|
compatible_minecraft_versions=["1.19.4"]
|
||||||
accessWidenerVersion=1_19
|
accessWidenerVersion=1_19_4
|
||||||
builds_for=fabric,forge
|
builds_for=fabric,forge
|
||||||
|
|
||||||
# Fabric loader
|
# Fabric loader
|
||||||
|
|||||||
@@ -1,47 +0,0 @@
|
|||||||
# 1.19 version
|
|
||||||
java_version = 17
|
|
||||||
minecraft_version=1.19
|
|
||||||
parchment_version=1.19.2:2022.11.27
|
|
||||||
compatible_minecraft_versions=["1.19"]
|
|
||||||
accessWidenerVersion=1_19
|
|
||||||
builds_for=fabric,forge
|
|
||||||
|
|
||||||
# Fabric loader
|
|
||||||
fabric_loader_version=0.14.21
|
|
||||||
fabric_api_version=0.58.0+1.19
|
|
||||||
# Fabric mod versions
|
|
||||||
modmenu_version=4.0.4
|
|
||||||
starlight_version_fabric=
|
|
||||||
phosphor_version_fabric=
|
|
||||||
lithium_version=
|
|
||||||
sodium_version=mc1.19.2-0.4.4
|
|
||||||
iris_version=1.6.4+1.19.2
|
|
||||||
bclib_version=2.1.6
|
|
||||||
immersive_portals_version=
|
|
||||||
canvas_version=mc119-1.0.2453
|
|
||||||
|
|
||||||
# Fabric mod run
|
|
||||||
# 0 = Don't enable and don't run
|
|
||||||
# 1 = Can be referenced in code but doesn't run
|
|
||||||
# 2 = Can be referenced in code and runs in client
|
|
||||||
enable_starlight=0
|
|
||||||
enable_phosphor=0
|
|
||||||
enable_sodium=1
|
|
||||||
enable_lithium=0
|
|
||||||
enable_iris=0
|
|
||||||
enable_bclib=1
|
|
||||||
enable_immersive_portals=0
|
|
||||||
enable_canvas=0
|
|
||||||
|
|
||||||
# Forge loader
|
|
||||||
forge_version=41.1.0
|
|
||||||
# Forge mod versions
|
|
||||||
starlight_version_forge=
|
|
||||||
terraforged_version=
|
|
||||||
|
|
||||||
# Forge mod run
|
|
||||||
# 0 = Don't enable and don't run
|
|
||||||
# 1 = Can be referenced in code but doesn't run
|
|
||||||
# 2 = Can be referenced in code and runs in client
|
|
||||||
enable_starlight_forge=0
|
|
||||||
enable_terraforged=0
|
|
||||||
Reference in New Issue
Block a user