From 58d5a8beda5b6d3272ff7073203532013d99eca4 Mon Sep 17 00:00:00 2001 From: James Seibel Date: Tue, 19 Oct 2021 21:14:57 -0500 Subject: [PATCH] Update the License header to match the new mod name LOD -> Distance Horizons --- license_header.txt | Bin 1514 -> 1598 bytes src/main/java/com/seibel/lod/LodMain.java | 5 ++- src/main/java/com/seibel/lod/ModInfo.java | 3 +- .../bufferBuilding/LodBufferBuilder.java | 42 +++++++++++------- .../lodTemplates/AbstractLodTemplate.java | 8 ++-- .../bufferBuilding/lodTemplates/Box.java | 28 ++++++++++-- .../lodTemplates/CubicLodTemplate.java | 3 +- .../lodTemplates/DynamicLodTemplate.java | 8 ++-- .../lodTemplates/TriangularLodTemplate.java | 8 ++-- .../lod/builders/lodBuilding/LodBuilder.java | 4 +- .../lodBuilding/LodBuilderConfig.java | 3 +- .../worldGeneration/LodNodeGenWorker.java | 7 ++- .../worldGeneration/LodServerWorld.java | 22 +++++---- .../worldGeneration/LodWorldGenerator.java | 32 ++++++++++--- .../java/com/seibel/lod/config/LodConfig.java | 3 +- .../com/seibel/lod/enums/BlockToAvoid.java | 4 +- .../seibel/lod/enums/BufferRebuildTimes.java | 4 +- .../java/com/seibel/lod/enums/DebugMode.java | 4 +- .../lod/enums/DistanceGenerationMode.java | 4 +- .../com/seibel/lod/enums/FogDistance.java | 4 +- .../com/seibel/lod/enums/FogDrawOverride.java | 4 +- .../java/com/seibel/lod/enums/FogQuality.java | 4 +- .../seibel/lod/enums/GenerationPriority.java | 4 +- .../com/seibel/lod/enums/GlProxyContext.java | 23 ++++++++++ .../seibel/lod/enums/HorizontalQuality.java | 4 +- .../lod/enums/HorizontalResolution.java | 8 ++-- .../com/seibel/lod/enums/HorizontalScale.java | 4 +- .../com/seibel/lod/enums/LodTemplate.java | 4 +- .../com/seibel/lod/enums/ShadingMode.java | 13 +++--- .../com/seibel/lod/enums/VanillaOverdraw.java | 20 +++++++++ .../com/seibel/lod/enums/VerticalQuality.java | 4 +- .../com/seibel/lod/handlers/ChunkLoader.java | 31 +++++++++++-- .../lod/handlers/LodDimensionFileHandler.java | 24 ++++++---- .../lod/handlers/ReflectionHandler.java | 10 +++-- .../seibel/lod/mixin/MixinWorldRenderer.java | 16 ++++--- .../seibel/lod/objects/LevelContainer.java | 19 ++++++++ .../com/seibel/lod/objects/LodDimension.java | 21 ++++++--- .../com/seibel/lod/objects/LodRegion.java | 30 ++++++++----- .../java/com/seibel/lod/objects/LodWorld.java | 11 +++-- .../lod/objects/NearFarFogSettings.java | 4 +- .../lod/objects/PosToGenerateContainer.java | 20 +++++++++ .../lod/objects/PosToRenderContainer.java | 23 +++++++++- .../com/seibel/lod/objects/RegionPos.java | 5 ++- .../lod/objects/VerticalLevelContainer.java | 33 ++++++++++++-- .../com/seibel/lod/proxy/ClientProxy.java | 5 ++- .../java/com/seibel/lod/proxy/GlProxy.java | 25 ++++++++++- .../com/seibel/lod/render/LodRenderer.java | 4 +- .../com/seibel/lod/render/RenderUtil.java | 5 ++- .../java/com/seibel/lod/util/ColorUtil.java | 29 +++++++++++- .../com/seibel/lod/util/DataPointUtil.java | 31 +++++++++++-- .../seibel/lod/util/DetailDistanceUtil.java | 24 ++++++++++ .../com/seibel/lod/util/LevelPosUtil.java | 24 ++++++++++ .../com/seibel/lod/util/LodThreadFactory.java | 19 ++++++++ .../java/com/seibel/lod/util/LodUtil.java | 4 +- .../com/seibel/lod/util/ThreadMapUtil.java | 20 +++++++++ .../seibel/lod/wrappers/MinecraftWrapper.java | 27 +++++++++-- 56 files changed, 610 insertions(+), 142 deletions(-) diff --git a/license_header.txt b/license_header.txt index 954ecbe820dc49131b323cc876ba482dec847fc6..0661f70d847c74d3ffdd68bcf15e8f2d061171e8 100644 GIT binary patch delta 89 zcmaFGy^m*thouWcCPOhp2}2@79*|UE@L * If you are looking for the real start of the mod * check out the ClientProxy. + * * @author James Seibel * @version 7-3-2021 */ diff --git a/src/main/java/com/seibel/lod/ModInfo.java b/src/main/java/com/seibel/lod/ModInfo.java index 063af2c38..d5998f6af 100644 --- a/src/main/java/com/seibel/lod/ModInfo.java +++ b/src/main/java/com/seibel/lod/ModInfo.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * diff --git a/src/main/java/com/seibel/lod/builders/bufferBuilding/LodBufferBuilder.java b/src/main/java/com/seibel/lod/builders/bufferBuilding/LodBufferBuilder.java index edadbe65b..0636b2294 100644 --- a/src/main/java/com/seibel/lod/builders/bufferBuilding/LodBufferBuilder.java +++ b/src/main/java/com/seibel/lod/builders/bufferBuilding/LodBufferBuilder.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -18,6 +19,22 @@ package com.seibel.lod.builders.bufferBuilding; +import java.nio.ByteBuffer; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Map; +import java.util.concurrent.Callable; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.Future; +import java.util.concurrent.locks.ReentrantLock; + +import org.lwjgl.opengl.GL11; +import org.lwjgl.opengl.GL15; +import org.lwjgl.opengl.GL15C; +import org.lwjgl.opengl.GL45; + import com.google.common.util.concurrent.ThreadFactoryBuilder; import com.mojang.blaze3d.systems.RenderSystem; import com.seibel.lod.builders.bufferBuilding.lodTemplates.Box; @@ -30,8 +47,14 @@ import com.seibel.lod.objects.RegionPos; import com.seibel.lod.proxy.ClientProxy; import com.seibel.lod.proxy.GlProxy; import com.seibel.lod.render.LodRenderer; -import com.seibel.lod.util.*; +import com.seibel.lod.util.DataPointUtil; +import com.seibel.lod.util.DetailDistanceUtil; +import com.seibel.lod.util.LevelPosUtil; +import com.seibel.lod.util.LodThreadFactory; +import com.seibel.lod.util.LodUtil; +import com.seibel.lod.util.ThreadMapUtil; import com.seibel.lod.wrappers.MinecraftWrapper; + import net.minecraft.client.renderer.BufferBuilder; import net.minecraft.client.renderer.vertex.VertexBuffer; import net.minecraft.client.world.ClientWorld; @@ -39,21 +62,6 @@ import net.minecraft.util.Direction; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.ChunkPos; import net.minecraft.world.LightType; -import org.lwjgl.opengl.GL11; -import org.lwjgl.opengl.GL15; -import org.lwjgl.opengl.GL15C; -import org.lwjgl.opengl.GL45; - -import java.nio.ByteBuffer; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.Map; -import java.util.concurrent.Callable; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.concurrent.Future; -import java.util.concurrent.locks.ReentrantLock; /** * This object is used to create NearFarBuffer objects. diff --git a/src/main/java/com/seibel/lod/builders/bufferBuilding/lodTemplates/AbstractLodTemplate.java b/src/main/java/com/seibel/lod/builders/bufferBuilding/lodTemplates/AbstractLodTemplate.java index e9203b342..118e571a2 100644 --- a/src/main/java/com/seibel/lod/builders/bufferBuilding/lodTemplates/AbstractLodTemplate.java +++ b/src/main/java/com/seibel/lod/builders/bufferBuilding/lodTemplates/AbstractLodTemplate.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -18,15 +19,16 @@ package com.seibel.lod.builders.bufferBuilding.lodTemplates; +import java.util.Map; + import com.seibel.lod.enums.DebugMode; import com.seibel.lod.util.ColorUtil; + import net.minecraft.client.renderer.BufferBuilder; import net.minecraft.client.renderer.texture.NativeImage; import net.minecraft.util.Direction; import net.minecraft.util.math.BlockPos; -import java.util.Map; - /** * This is the abstract class used to create different * BufferBuilders. diff --git a/src/main/java/com/seibel/lod/builders/bufferBuilding/lodTemplates/Box.java b/src/main/java/com/seibel/lod/builders/bufferBuilding/lodTemplates/Box.java index 56c135d95..bbb701c1d 100644 --- a/src/main/java/com/seibel/lod/builders/bufferBuilding/lodTemplates/Box.java +++ b/src/main/java/com/seibel/lod/builders/bufferBuilding/lodTemplates/Box.java @@ -1,19 +1,39 @@ +/* + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. + * + * Copyright (C) 2020 James Seibel + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.seibel.lod.builders.bufferBuilding.lodTemplates; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + import com.seibel.lod.config.LodConfig; import com.seibel.lod.enums.DebugMode; import com.seibel.lod.util.ColorUtil; import com.seibel.lod.util.DataPointUtil; import com.seibel.lod.util.LodUtil; import com.seibel.lod.wrappers.MinecraftWrapper; + import net.minecraft.util.Direction; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.vector.Vector3i; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - /** * Similar to Minecraft's AxisAlignedBoundingBox. * @author Leonardo Amato diff --git a/src/main/java/com/seibel/lod/builders/bufferBuilding/lodTemplates/CubicLodTemplate.java b/src/main/java/com/seibel/lod/builders/bufferBuilding/lodTemplates/CubicLodTemplate.java index 9e5157800..a46c6af46 100644 --- a/src/main/java/com/seibel/lod/builders/bufferBuilding/lodTemplates/CubicLodTemplate.java +++ b/src/main/java/com/seibel/lod/builders/bufferBuilding/lodTemplates/CubicLodTemplate.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * diff --git a/src/main/java/com/seibel/lod/builders/bufferBuilding/lodTemplates/DynamicLodTemplate.java b/src/main/java/com/seibel/lod/builders/bufferBuilding/lodTemplates/DynamicLodTemplate.java index 3145e1705..a7ec3c87b 100644 --- a/src/main/java/com/seibel/lod/builders/bufferBuilding/lodTemplates/DynamicLodTemplate.java +++ b/src/main/java/com/seibel/lod/builders/bufferBuilding/lodTemplates/DynamicLodTemplate.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -18,15 +19,16 @@ package com.seibel.lod.builders.bufferBuilding.lodTemplates; +import java.util.Map; + import com.seibel.lod.enums.DebugMode; import com.seibel.lod.proxy.ClientProxy; + import net.minecraft.client.renderer.BufferBuilder; import net.minecraft.client.renderer.texture.NativeImage; import net.minecraft.util.Direction; import net.minecraft.util.math.BlockPos; -import java.util.Map; - /** * TODO DynamicLodTemplate * Chunks smoothly transition between diff --git a/src/main/java/com/seibel/lod/builders/bufferBuilding/lodTemplates/TriangularLodTemplate.java b/src/main/java/com/seibel/lod/builders/bufferBuilding/lodTemplates/TriangularLodTemplate.java index c84a93dfa..9ad30e317 100644 --- a/src/main/java/com/seibel/lod/builders/bufferBuilding/lodTemplates/TriangularLodTemplate.java +++ b/src/main/java/com/seibel/lod/builders/bufferBuilding/lodTemplates/TriangularLodTemplate.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -18,15 +19,16 @@ package com.seibel.lod.builders.bufferBuilding.lodTemplates; +import java.util.Map; + import com.seibel.lod.enums.DebugMode; import com.seibel.lod.proxy.ClientProxy; + import net.minecraft.client.renderer.BufferBuilder; import net.minecraft.client.renderer.texture.NativeImage; import net.minecraft.util.Direction; import net.minecraft.util.math.BlockPos; -import java.util.Map; - /** * TODO #21 TriangularLodTemplate * Builds each LOD chunk as a singular rectangular prism. diff --git a/src/main/java/com/seibel/lod/builders/lodBuilding/LodBuilder.java b/src/main/java/com/seibel/lod/builders/lodBuilding/LodBuilder.java index ef70eb793..0ee4f5815 100644 --- a/src/main/java/com/seibel/lod/builders/lodBuilding/LodBuilder.java +++ b/src/main/java/com/seibel/lod/builders/lodBuilding/LodBuilder.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -68,7 +69,6 @@ import net.minecraft.world.LightType; import net.minecraft.world.World; import net.minecraft.world.biome.Biome; import net.minecraft.world.biome.BiomeColors; -import net.minecraft.world.chunk.Chunk; import net.minecraft.world.chunk.ChunkSection; import net.minecraft.world.chunk.IChunk; import net.minecraft.world.server.ServerWorld; diff --git a/src/main/java/com/seibel/lod/builders/lodBuilding/LodBuilderConfig.java b/src/main/java/com/seibel/lod/builders/lodBuilding/LodBuilderConfig.java index e7641d845..89569f486 100644 --- a/src/main/java/com/seibel/lod/builders/lodBuilding/LodBuilderConfig.java +++ b/src/main/java/com/seibel/lod/builders/lodBuilding/LodBuilderConfig.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * diff --git a/src/main/java/com/seibel/lod/builders/worldGeneration/LodNodeGenWorker.java b/src/main/java/com/seibel/lod/builders/worldGeneration/LodNodeGenWorker.java index 2a133a813..b2c6dbe12 100644 --- a/src/main/java/com/seibel/lod/builders/worldGeneration/LodNodeGenWorker.java +++ b/src/main/java/com/seibel/lod/builders/worldGeneration/LodNodeGenWorker.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -32,15 +33,12 @@ import com.seibel.lod.builders.lodBuilding.LodBuilder; import com.seibel.lod.builders.lodBuilding.LodBuilderConfig; import com.seibel.lod.config.LodConfig; import com.seibel.lod.enums.DistanceGenerationMode; -import com.seibel.lod.handlers.ChunkLoader; import com.seibel.lod.objects.LodDimension; import com.seibel.lod.proxy.ClientProxy; import com.seibel.lod.util.LodUtil; -import com.seibel.lod.wrappers.MinecraftWrapper; import net.minecraft.block.Block; import net.minecraft.block.BlockState; -import net.minecraft.client.world.ClientWorld; import net.minecraft.util.math.ChunkPos; import net.minecraft.util.palette.UpgradeData; import net.minecraft.util.registry.Registry; @@ -70,6 +68,7 @@ import net.minecraftforge.common.WorldWorkerManager.IWorker; /** * This is used to generate a LodChunk at a given ChunkPos. + * * @author James Seibel * @version 10-15-2021 */ diff --git a/src/main/java/com/seibel/lod/builders/worldGeneration/LodServerWorld.java b/src/main/java/com/seibel/lod/builders/worldGeneration/LodServerWorld.java index 835641937..1229a853c 100644 --- a/src/main/java/com/seibel/lod/builders/worldGeneration/LodServerWorld.java +++ b/src/main/java/com/seibel/lod/builders/worldGeneration/LodServerWorld.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -18,7 +19,14 @@ package com.seibel.lod.builders.worldGeneration; +import java.util.HashMap; +import java.util.List; +import java.util.Random; +import java.util.function.Predicate; +import java.util.stream.Stream; + import com.seibel.lod.util.LodUtil; + import net.minecraft.block.Block; import net.minecraft.block.BlockState; import net.minecraft.entity.Entity; @@ -34,7 +42,11 @@ import net.minecraft.util.math.AxisAlignedBB; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.SectionPos; import net.minecraft.util.registry.DynamicRegistries; -import net.minecraft.world.*; +import net.minecraft.world.DifficultyInstance; +import net.minecraft.world.DimensionType; +import net.minecraft.world.EmptyTickList; +import net.minecraft.world.ISeedReader; +import net.minecraft.world.ITickList; import net.minecraft.world.biome.Biome; import net.minecraft.world.biome.BiomeManager; import net.minecraft.world.border.WorldBorder; @@ -49,12 +61,6 @@ import net.minecraft.world.lighting.WorldLightManager; import net.minecraft.world.server.ServerWorld; import net.minecraft.world.storage.IWorldInfo; -import java.util.HashMap; -import java.util.List; -import java.util.Random; -import java.util.function.Predicate; -import java.util.stream.Stream; - /** * This is a fake ServerWorld used when generating features. diff --git a/src/main/java/com/seibel/lod/builders/worldGeneration/LodWorldGenerator.java b/src/main/java/com/seibel/lod/builders/worldGeneration/LodWorldGenerator.java index 0339cbdf8..151598de5 100644 --- a/src/main/java/com/seibel/lod/builders/worldGeneration/LodWorldGenerator.java +++ b/src/main/java/com/seibel/lod/builders/worldGeneration/LodWorldGenerator.java @@ -1,5 +1,30 @@ +/* + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. + * + * Copyright (C) 2020 James Seibel + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.seibel.lod.builders.worldGeneration; +import java.util.HashSet; +import java.util.Set; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import java.util.concurrent.atomic.AtomicInteger; + import com.seibel.lod.builders.lodBuilding.LodBuilder; import com.seibel.lod.config.LodConfig; import com.seibel.lod.enums.DistanceGenerationMode; @@ -11,16 +36,11 @@ import com.seibel.lod.util.LevelPosUtil; import com.seibel.lod.util.LodThreadFactory; import com.seibel.lod.util.LodUtil; import com.seibel.lod.wrappers.MinecraftWrapper; + import net.minecraft.util.math.ChunkPos; import net.minecraft.world.server.ServerWorld; import net.minecraftforge.common.WorldWorkerManager; -import java.util.HashSet; -import java.util.Set; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.concurrent.atomic.AtomicInteger; - /** * A singleton that handles all long distance LOD world generation. * @author James Seibel diff --git a/src/main/java/com/seibel/lod/config/LodConfig.java b/src/main/java/com/seibel/lod/config/LodConfig.java index 4101ed388..0a59f831f 100644 --- a/src/main/java/com/seibel/lod/config/LodConfig.java +++ b/src/main/java/com/seibel/lod/config/LodConfig.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * diff --git a/src/main/java/com/seibel/lod/enums/BlockToAvoid.java b/src/main/java/com/seibel/lod/enums/BlockToAvoid.java index bb6987069..a8de2c41a 100644 --- a/src/main/java/com/seibel/lod/enums/BlockToAvoid.java +++ b/src/main/java/com/seibel/lod/enums/BlockToAvoid.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -21,6 +22,7 @@ package com.seibel.lod.enums; /** * heightmap
* multi_lod
+ * * @author Leonardo Amato * @version 19-10-2021 */ diff --git a/src/main/java/com/seibel/lod/enums/BufferRebuildTimes.java b/src/main/java/com/seibel/lod/enums/BufferRebuildTimes.java index d70efee9c..0ae515b1f 100644 --- a/src/main/java/com/seibel/lod/enums/BufferRebuildTimes.java +++ b/src/main/java/com/seibel/lod/enums/BufferRebuildTimes.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -23,6 +24,7 @@ package com.seibel.lod.enums; * Far_First
*
* Determines how fast the buffers need to be regenerated + * * @author Leonardo Amato * @version 9-25-2021 */ diff --git a/src/main/java/com/seibel/lod/enums/DebugMode.java b/src/main/java/com/seibel/lod/enums/DebugMode.java index 7f210b836..1b68f2a6f 100644 --- a/src/main/java/com/seibel/lod/enums/DebugMode.java +++ b/src/main/java/com/seibel/lod/enums/DebugMode.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -20,6 +21,7 @@ package com.seibel.lod.enums; /** * off, detail, detail wireframe + * * @author James Seibel * @version 8-28-2021 */ diff --git a/src/main/java/com/seibel/lod/enums/DistanceGenerationMode.java b/src/main/java/com/seibel/lod/enums/DistanceGenerationMode.java index 2d23dedb4..3060ec4a4 100644 --- a/src/main/java/com/seibel/lod/enums/DistanceGenerationMode.java +++ b/src/main/java/com/seibel/lod/enums/DistanceGenerationMode.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -27,6 +28,7 @@ package com.seibel.lod.enums; * SERVER

*

* In order of fastest to slowest. + * * @author James Seibel * @author Leonardo Amato * @version 8-7-2021 diff --git a/src/main/java/com/seibel/lod/enums/FogDistance.java b/src/main/java/com/seibel/lod/enums/FogDistance.java index cc9afce05..b589a57c5 100644 --- a/src/main/java/com/seibel/lod/enums/FogDistance.java +++ b/src/main/java/com/seibel/lod/enums/FogDistance.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -20,6 +21,7 @@ package com.seibel.lod.enums; /** * NEAR, FAR, or NEAR_AND_FAR. + * * @author James Seibel * @version 02-14-2021 */ diff --git a/src/main/java/com/seibel/lod/enums/FogDrawOverride.java b/src/main/java/com/seibel/lod/enums/FogDrawOverride.java index 600499c98..e214059d5 100644 --- a/src/main/java/com/seibel/lod/enums/FogDrawOverride.java +++ b/src/main/java/com/seibel/lod/enums/FogDrawOverride.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -23,6 +24,7 @@ package com.seibel.lod.enums; * NEVER_DRAW_FOG,
* ALWAYS_DRAW_FOG_FAST,
* ALWAYS_DRAW_FOG_FANCY
+ * * @author James Seibel * @version 7-3-2021 */ diff --git a/src/main/java/com/seibel/lod/enums/FogQuality.java b/src/main/java/com/seibel/lod/enums/FogQuality.java index e1d5493f3..d192a33f4 100644 --- a/src/main/java/com/seibel/lod/enums/FogQuality.java +++ b/src/main/java/com/seibel/lod/enums/FogQuality.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -20,6 +21,7 @@ package com.seibel.lod.enums; /** * fast, fancy, or off + * * @author James Seibel * @version 02-14-2021 */ diff --git a/src/main/java/com/seibel/lod/enums/GenerationPriority.java b/src/main/java/com/seibel/lod/enums/GenerationPriority.java index 952f270c1..63c6b9d7f 100644 --- a/src/main/java/com/seibel/lod/enums/GenerationPriority.java +++ b/src/main/java/com/seibel/lod/enums/GenerationPriority.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -24,6 +25,7 @@ package com.seibel.lod.enums; *
* Determines which LODs should have priority when generating * outside the normal view distance. + * * @author Leonardo Amato * @version 9-25-2021 */ diff --git a/src/main/java/com/seibel/lod/enums/GlProxyContext.java b/src/main/java/com/seibel/lod/enums/GlProxyContext.java index aece5458b..512b46c7b 100644 --- a/src/main/java/com/seibel/lod/enums/GlProxyContext.java +++ b/src/main/java/com/seibel/lod/enums/GlProxyContext.java @@ -1,13 +1,36 @@ +/* + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. + * + * Copyright (C) 2020 James Seibel + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.seibel.lod.enums; /** * Minecraft, Lod_Builder, None + * * @author James Seibel * @version 10-1-2021 */ public enum GlProxyContext { + /** Minecraft's render thread */ MINECRAFT, + + /** The context we send buffers to the GPU on */ LOD_BUILDER, /** used to un-bind threads */ diff --git a/src/main/java/com/seibel/lod/enums/HorizontalQuality.java b/src/main/java/com/seibel/lod/enums/HorizontalQuality.java index 733dbdbbf..09472c320 100644 --- a/src/main/java/com/seibel/lod/enums/HorizontalQuality.java +++ b/src/main/java/com/seibel/lod/enums/HorizontalQuality.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -25,6 +26,7 @@ package com.seibel.lod.enums; * High
*
* this indicates the base of the quadratic function we use for the quality drop off + * * @author Leonardo Amato * @version 9-29-2021 */ diff --git a/src/main/java/com/seibel/lod/enums/HorizontalResolution.java b/src/main/java/com/seibel/lod/enums/HorizontalResolution.java index 2edfb25b4..e8cdbbfa9 100644 --- a/src/main/java/com/seibel/lod/enums/HorizontalResolution.java +++ b/src/main/java/com/seibel/lod/enums/HorizontalResolution.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -18,17 +19,18 @@ package com.seibel.lod.enums; -import com.seibel.lod.util.LodUtil; - import java.util.ArrayList; import java.util.Collections; +import com.seibel.lod.util.LodUtil; + /** * chunk
* half_chunk
* four_blocks
* two_blocks
* block
+ * * @author James Seibel * @author Leonardo Amato * @version 9-25-2021 diff --git a/src/main/java/com/seibel/lod/enums/HorizontalScale.java b/src/main/java/com/seibel/lod/enums/HorizontalScale.java index 1976deaa4..cf941d1e6 100644 --- a/src/main/java/com/seibel/lod/enums/HorizontalScale.java +++ b/src/main/java/com/seibel/lod/enums/HorizontalScale.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -24,6 +25,7 @@ package com.seibel.lod.enums; * High
*
* this is a quality scale for the detail drop-off + * * @author Leonardo Amato * @version 9-25-2021 */ diff --git a/src/main/java/com/seibel/lod/enums/LodTemplate.java b/src/main/java/com/seibel/lod/enums/LodTemplate.java index 6d2ad43be..965838571 100644 --- a/src/main/java/com/seibel/lod/enums/LodTemplate.java +++ b/src/main/java/com/seibel/lod/enums/LodTemplate.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -25,6 +26,7 @@ import com.seibel.lod.builders.bufferBuilding.lodTemplates.TriangularLodTemplate /** * Cubic, Triangular, Dynamic + * * @author James Seibel * @version 10-10-2021 */ diff --git a/src/main/java/com/seibel/lod/enums/ShadingMode.java b/src/main/java/com/seibel/lod/enums/ShadingMode.java index 0b6fd78ad..89d7d0405 100644 --- a/src/main/java/com/seibel/lod/enums/ShadingMode.java +++ b/src/main/java/com/seibel/lod/enums/ShadingMode.java @@ -2,20 +2,21 @@ package com.seibel.lod.enums; /** * NONE, GAME_SHADING + * * @author James Seibel * @version 7-25-2020 */ public enum ShadingMode { /** - * LODs will have the same lighting on every side. - * can make large similarly colored areas hard to differentiate + * LODs will have darker sides and bottoms to simulate + * Minecraft's fast lighting. */ - NONE, + GAME_SHADING, /** - * LODs will have darker sides and bottoms to simulate - * Minecraft's fast, top down lighting. + * LODs will use ambient occlusion to mimic Minecarft's + * Fancy lighting. */ - GAME_SHADING + AMBIENT_OCCLUSION } \ No newline at end of file diff --git a/src/main/java/com/seibel/lod/enums/VanillaOverdraw.java b/src/main/java/com/seibel/lod/enums/VanillaOverdraw.java index 57fd34299..efe888694 100644 --- a/src/main/java/com/seibel/lod/enums/VanillaOverdraw.java +++ b/src/main/java/com/seibel/lod/enums/VanillaOverdraw.java @@ -1,3 +1,22 @@ +/* + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. + * + * Copyright (C) 2020 James Seibel + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.seibel.lod.enums; /** @@ -6,6 +25,7 @@ package com.seibel.lod.enums; *

* This represents how far the LODs should overlap with * the vanilla Minecraft terrain. + * * @author James Seibel * @version 10-11-2021 */ diff --git a/src/main/java/com/seibel/lod/enums/VerticalQuality.java b/src/main/java/com/seibel/lod/enums/VerticalQuality.java index 99df919c1..b66cff165 100644 --- a/src/main/java/com/seibel/lod/enums/VerticalQuality.java +++ b/src/main/java/com/seibel/lod/enums/VerticalQuality.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -21,6 +22,7 @@ package com.seibel.lod.enums; /** * heightmap
* multi_lod
+ * * @author Leonardo Amato * @version 10-07-2021 */ diff --git a/src/main/java/com/seibel/lod/handlers/ChunkLoader.java b/src/main/java/com/seibel/lod/handlers/ChunkLoader.java index 388024eea..3c1b858ac 100644 --- a/src/main/java/com/seibel/lod/handlers/ChunkLoader.java +++ b/src/main/java/com/seibel/lod/handlers/ChunkLoader.java @@ -1,17 +1,40 @@ +/* + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. + * + * Copyright (C) 2020 James Seibel + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.seibel.lod.handlers; +import java.io.File; + import com.seibel.lod.util.LodUtil; import com.seibel.lod.wrappers.MinecraftWrapper; + import net.minecraft.client.world.ClientWorld; -import net.minecraft.nbt.CompoundNBT; -import net.minecraft.util.datafix.DataFixesManager; import net.minecraft.util.math.ChunkPos; import net.minecraft.world.chunk.IChunk; import net.minecraft.world.chunk.storage.ChunkSerializer; import net.minecraft.world.server.ServerWorld; -import java.io.File; - +/** + * + * @author ?? + * @version ?? + */ public class ChunkLoader { public static IChunk getChunkFromFile(ChunkPos pos){ diff --git a/src/main/java/com/seibel/lod/handlers/LodDimensionFileHandler.java b/src/main/java/com/seibel/lod/handlers/LodDimensionFileHandler.java index b11b806b3..33a172570 100644 --- a/src/main/java/com/seibel/lod/handlers/LodDimensionFileHandler.java +++ b/src/main/java/com/seibel/lod/handlers/LodDimensionFileHandler.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -18,6 +19,18 @@ package com.seibel.lod.handlers; +import java.io.File; +import java.io.FileInputStream; +import java.io.FileOutputStream; +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.StandardCopyOption; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; + +import org.apache.commons.compress.compressors.xz.XZCompressorInputStream; +import org.apache.commons.compress.compressors.xz.XZCompressorOutputStream; + import com.seibel.lod.enums.DistanceGenerationMode; import com.seibel.lod.enums.VerticalQuality; import com.seibel.lod.objects.LodDimension; @@ -28,19 +41,12 @@ import com.seibel.lod.proxy.ClientProxy; import com.seibel.lod.util.LodThreadFactory; import com.seibel.lod.util.LodUtil; import com.seibel.lod.util.ThreadMapUtil; -import org.apache.commons.compress.compressors.xz.XZCompressorInputStream; -import org.apache.commons.compress.compressors.xz.XZCompressorOutputStream; - -import java.io.*; -import java.nio.file.Files; -import java.nio.file.StandardCopyOption; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; /** * This object handles creating LodRegions * from files and saving LodRegion objects * to file. + * * @author James Seibel * @author Cola * @version 9-25-2021 diff --git a/src/main/java/com/seibel/lod/handlers/ReflectionHandler.java b/src/main/java/com/seibel/lod/handlers/ReflectionHandler.java index 45606b781..c62fb4a8b 100644 --- a/src/main/java/com/seibel/lod/handlers/ReflectionHandler.java +++ b/src/main/java/com/seibel/lod/handlers/ReflectionHandler.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -18,17 +19,18 @@ package com.seibel.lod.handlers; +import java.lang.reflect.Field; +import java.lang.reflect.Method; + import com.seibel.lod.enums.FogQuality; import com.seibel.lod.proxy.ClientProxy; import com.seibel.lod.wrappers.MinecraftWrapper; -import java.lang.reflect.Field; -import java.lang.reflect.Method; - /** * This object is used to get variables from methods * where they are private. Specifically the fog setting * in Optifine. + * * @author James Seibel * @version 9-25-2021 */ diff --git a/src/main/java/com/seibel/lod/mixin/MixinWorldRenderer.java b/src/main/java/com/seibel/lod/mixin/MixinWorldRenderer.java index 3f722af05..1d9aca68f 100644 --- a/src/main/java/com/seibel/lod/mixin/MixinWorldRenderer.java +++ b/src/main/java/com/seibel/lod/mixin/MixinWorldRenderer.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -18,22 +19,25 @@ package com.seibel.lod.mixin; -import com.mojang.blaze3d.matrix.MatrixStack; -import com.seibel.lod.LodMain; -import com.seibel.lod.config.LodConfig; -import net.minecraft.client.renderer.RenderType; -import net.minecraft.client.renderer.WorldRenderer; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; +import com.mojang.blaze3d.matrix.MatrixStack; +import com.seibel.lod.LodMain; +import com.seibel.lod.config.LodConfig; + +import net.minecraft.client.renderer.RenderType; +import net.minecraft.client.renderer.WorldRenderer; + /** * This class is used to mix in my rendering code * before Minecraft starts rendering blocks. * If this wasn't done, and we used Forge's * render last event, the LODs would render on top * of the normal terrain. + * * @author James Seibel * @version 9-19-2021 */ diff --git a/src/main/java/com/seibel/lod/objects/LevelContainer.java b/src/main/java/com/seibel/lod/objects/LevelContainer.java index bb24a5e80..74692f950 100644 --- a/src/main/java/com/seibel/lod/objects/LevelContainer.java +++ b/src/main/java/com/seibel/lod/objects/LevelContainer.java @@ -1,3 +1,22 @@ +/* + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. + * + * Copyright (C) 2020 James Seibel + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.seibel.lod.objects; /** diff --git a/src/main/java/com/seibel/lod/objects/LodDimension.java b/src/main/java/com/seibel/lod/objects/LodDimension.java index b774ef0ab..60a98a6c0 100644 --- a/src/main/java/com/seibel/lod/objects/LodDimension.java +++ b/src/main/java/com/seibel/lod/objects/LodDimension.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -18,23 +19,28 @@ package com.seibel.lod.objects; +import java.io.File; +import java.io.IOException; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; + import com.seibel.lod.config.LodConfig; import com.seibel.lod.enums.DistanceGenerationMode; import com.seibel.lod.enums.GenerationPriority; import com.seibel.lod.enums.VerticalQuality; import com.seibel.lod.handlers.LodDimensionFileHandler; -import com.seibel.lod.util.*; +import com.seibel.lod.util.DataPointUtil; +import com.seibel.lod.util.DetailDistanceUtil; +import com.seibel.lod.util.LevelPosUtil; +import com.seibel.lod.util.LodThreadFactory; +import com.seibel.lod.util.LodUtil; import com.seibel.lod.wrappers.MinecraftWrapper; + import net.minecraft.util.math.ChunkPos; import net.minecraft.world.DimensionType; import net.minecraft.world.server.ServerChunkProvider; import net.minecraft.world.server.ServerWorld; -import java.io.File; -import java.io.IOException; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; - /** * This object holds all loaded LOD regions @@ -43,6 +49,7 @@ import java.util.concurrent.Executors; * Coordinate Standard:
* Coordinate called posX or posZ are relative LevelPos coordinates
* unless stated otherwise.
+ * * @author Leonardo Amato * @author James Seibel * @version 10-10-2021 diff --git a/src/main/java/com/seibel/lod/objects/LodRegion.java b/src/main/java/com/seibel/lod/objects/LodRegion.java index 2ff21e0ef..bb397af40 100644 --- a/src/main/java/com/seibel/lod/objects/LodRegion.java +++ b/src/main/java/com/seibel/lod/objects/LodRegion.java @@ -1,21 +1,30 @@ +/* + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. + * + * Copyright (C) 2020 James Seibel + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.seibel.lod.objects; - -import com.seibel.lod.config.LodConfig; import com.seibel.lod.enums.DistanceGenerationMode; import com.seibel.lod.enums.VerticalQuality; import com.seibel.lod.util.DataPointUtil; import com.seibel.lod.util.DetailDistanceUtil; import com.seibel.lod.util.LevelPosUtil; import com.seibel.lod.util.LodUtil; -import com.seibel.lod.wrappers.MinecraftWrapper; -import net.minecraft.util.math.ChunkPos; -import net.minecraft.world.chunk.storage.RegionFile; -import net.minecraft.world.server.ServerChunkProvider; -import net.minecraft.world.server.ServerWorld; -import org.lwjgl.system.CallbackI; - -import java.io.File; /** * This object holds all loaded LevelContainers acting as a quad tree @@ -24,6 +33,7 @@ import java.io.File; * Coordinate Standard:
* Coordinate called posX or posZ are relative LevelPos coordinates
* unless stated otherwise.
+ * * @author Leonardo Amato * @version 10-10-2021 */ diff --git a/src/main/java/com/seibel/lod/objects/LodWorld.java b/src/main/java/com/seibel/lod/objects/LodWorld.java index 1e3d2d26c..95d4ec998 100644 --- a/src/main/java/com/seibel/lod/objects/LodWorld.java +++ b/src/main/java/com/seibel/lod/objects/LodWorld.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -18,14 +19,16 @@ package com.seibel.lod.objects; -import com.seibel.lod.proxy.ClientProxy; -import net.minecraft.world.DimensionType; - import java.util.Hashtable; import java.util.Map; +import com.seibel.lod.proxy.ClientProxy; + +import net.minecraft.world.DimensionType; + /** * This stores all LODs for a given world. + * * @author James Seibel * @author Leonardo Amato * @version 9-27-2021 diff --git a/src/main/java/com/seibel/lod/objects/NearFarFogSettings.java b/src/main/java/com/seibel/lod/objects/NearFarFogSettings.java index fb9565c76..194ab2a60 100644 --- a/src/main/java/com/seibel/lod/objects/NearFarFogSettings.java +++ b/src/main/java/com/seibel/lod/objects/NearFarFogSettings.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -24,6 +25,7 @@ import com.seibel.lod.enums.FogQuality; /** * This object is just a replacement for an array * to make things easier to understand in the LodRenderer. + * * @author James Seibel * @version 7-03-2021 */ diff --git a/src/main/java/com/seibel/lod/objects/PosToGenerateContainer.java b/src/main/java/com/seibel/lod/objects/PosToGenerateContainer.java index 5dd7c404a..5efa58d14 100644 --- a/src/main/java/com/seibel/lod/objects/PosToGenerateContainer.java +++ b/src/main/java/com/seibel/lod/objects/PosToGenerateContainer.java @@ -1,3 +1,22 @@ +/* + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. + * + * Copyright (C) 2020 James Seibel + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.seibel.lod.objects; import com.seibel.lod.util.LevelPosUtil; @@ -5,6 +24,7 @@ import com.seibel.lod.util.LevelPosUtil; /** * Holds the levelPos that need to be generated. * TODO is that correct? + * * @author Leonardo Amato * @version 9-27-2021 */ diff --git a/src/main/java/com/seibel/lod/objects/PosToRenderContainer.java b/src/main/java/com/seibel/lod/objects/PosToRenderContainer.java index 16b21fc4e..5e08bdd1d 100644 --- a/src/main/java/com/seibel/lod/objects/PosToRenderContainer.java +++ b/src/main/java/com/seibel/lod/objects/PosToRenderContainer.java @@ -1,11 +1,30 @@ +/* + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. + * + * Copyright (C) 2020 James Seibel + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.seibel.lod.objects; +import java.util.Arrays; + import com.seibel.lod.proxy.ClientProxy; import com.seibel.lod.util.LevelPosUtil; import com.seibel.lod.util.LodUtil; -import java.util.Arrays; - /** * @author Leonardo Amato * @version 9-18-2021 diff --git a/src/main/java/com/seibel/lod/objects/RegionPos.java b/src/main/java/com/seibel/lod/objects/RegionPos.java index b586090a0..22657c571 100644 --- a/src/main/java/com/seibel/lod/objects/RegionPos.java +++ b/src/main/java/com/seibel/lod/objects/RegionPos.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -19,11 +20,13 @@ package com.seibel.lod.objects; import com.seibel.lod.util.LodUtil; + import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.ChunkPos; /** * This object is similar to ChunkPos or BlockPos. + * * @author James Seibel * @version 8-21-2021 */ diff --git a/src/main/java/com/seibel/lod/objects/VerticalLevelContainer.java b/src/main/java/com/seibel/lod/objects/VerticalLevelContainer.java index e0fe2ca7d..162d171ac 100644 --- a/src/main/java/com/seibel/lod/objects/VerticalLevelContainer.java +++ b/src/main/java/com/seibel/lod/objects/VerticalLevelContainer.java @@ -1,9 +1,35 @@ +/* + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. + * + * Copyright (C) 2020 James Seibel + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.seibel.lod.objects; -import com.seibel.lod.util.*; - -import java.util.Arrays; +import com.seibel.lod.util.DataPointUtil; +import com.seibel.lod.util.DetailDistanceUtil; +import com.seibel.lod.util.LevelPosUtil; +import com.seibel.lod.util.LodUtil; +import com.seibel.lod.util.ThreadMapUtil; +/** + * + * @author Leonardo Amato + * @version ?? + */ public class VerticalLevelContainer implements LevelContainer { @@ -49,6 +75,7 @@ public class VerticalLevelContainer implements LevelContainer return true; } + @Override public boolean addVerticalData(long[] data, int posX, int posZ) { diff --git a/src/main/java/com/seibel/lod/proxy/ClientProxy.java b/src/main/java/com/seibel/lod/proxy/ClientProxy.java index 2d46f606f..5d305940f 100644 --- a/src/main/java/com/seibel/lod/proxy/ClientProxy.java +++ b/src/main/java/com/seibel/lod/proxy/ClientProxy.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -153,7 +154,7 @@ public class ClientProxy } } - + /** used in a development environment to change settings on the fly */ private void applyConfigOverrides() { // remind the developer(s) that the config override is active diff --git a/src/main/java/com/seibel/lod/proxy/GlProxy.java b/src/main/java/com/seibel/lod/proxy/GlProxy.java index bc1bc8b3b..af9992470 100644 --- a/src/main/java/com/seibel/lod/proxy/GlProxy.java +++ b/src/main/java/com/seibel/lod/proxy/GlProxy.java @@ -1,11 +1,31 @@ +/* + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. + * + * Copyright (C) 2020 James Seibel + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.seibel.lod.proxy; -import com.mojang.blaze3d.systems.RenderSystem; -import com.seibel.lod.enums.GlProxyContext; import org.lwjgl.glfw.GLFW; import org.lwjgl.opengl.GL; import org.lwjgl.opengl.GLCapabilities; +import com.mojang.blaze3d.systems.RenderSystem; +import com.seibel.lod.enums.GlProxyContext; + /** * A singleton that holds references to different openGL contexts * and GPU capabilities. @@ -16,6 +36,7 @@ import org.lwjgl.opengl.GLCapabilities; * https://www.seas.upenn.edu/~pcozzi/OpenGLInsights/OpenGLInsights-AsynchronousBufferTransfers.pdf
* https://learnopengl.com/Advanced-OpenGL/Advanced-Data
* https://gamedev.stackexchange.com/questions/91995/edit-vbo-data-or-create-a-new-one

+ * * @author James Seibel * @version 10-2-2021 */ diff --git a/src/main/java/com/seibel/lod/render/LodRenderer.java b/src/main/java/com/seibel/lod/render/LodRenderer.java index 54124086c..853781c81 100644 --- a/src/main/java/com/seibel/lod/render/LodRenderer.java +++ b/src/main/java/com/seibel/lod/render/LodRenderer.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -61,6 +62,7 @@ import net.minecraft.util.math.vector.Vector3d; /** * This is where all the magic happens.
* This is where LODs are draw to the world. + * * @author James Seibel * @version 10-13-2021 */ diff --git a/src/main/java/com/seibel/lod/render/RenderUtil.java b/src/main/java/com/seibel/lod/render/RenderUtil.java index 3218db85f..582bdc454 100644 --- a/src/main/java/com/seibel/lod/render/RenderUtil.java +++ b/src/main/java/com/seibel/lod/render/RenderUtil.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -20,6 +21,7 @@ package com.seibel.lod.render; import com.seibel.lod.util.LodUtil; import com.seibel.lod.wrappers.MinecraftWrapper; + import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.ChunkPos; import net.minecraft.util.math.vector.Vector3d; @@ -27,6 +29,7 @@ import net.minecraft.util.math.vector.Vector3d; /** * This holds miscellaneous helper code * to be used in the rendering process. + * * @author James Seibel * @version 10-10-2021 */ diff --git a/src/main/java/com/seibel/lod/util/ColorUtil.java b/src/main/java/com/seibel/lod/util/ColorUtil.java index 015262cf9..7a814dd08 100644 --- a/src/main/java/com/seibel/lod/util/ColorUtil.java +++ b/src/main/java/com/seibel/lod/util/ColorUtil.java @@ -1,9 +1,34 @@ +/* + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. + * + * Copyright (C) 2020 James Seibel + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.seibel.lod.util; +import java.awt.Color; + import net.minecraft.client.renderer.texture.NativeImage; -import java.awt.*; - +/** + * + * @author Cola + * @author Leonardo Amato + * @version ?? + */ public class ColorUtil { public static int rgbToInt(int red, int green, int blue) diff --git a/src/main/java/com/seibel/lod/util/DataPointUtil.java b/src/main/java/com/seibel/lod/util/DataPointUtil.java index 5b4835bd7..5422b9241 100644 --- a/src/main/java/com/seibel/lod/util/DataPointUtil.java +++ b/src/main/java/com/seibel/lod/util/DataPointUtil.java @@ -1,10 +1,35 @@ -package com.seibel.lod.util; +/* + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. + * + * Copyright (C) 2020 James Seibel + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ -import com.seibel.lod.enums.DistanceGenerationMode; -import net.minecraft.client.renderer.texture.NativeImage; +package com.seibel.lod.util; import static com.seibel.lod.builders.bufferBuilding.LodBufferBuilder.skyLightPlayer; +import com.seibel.lod.enums.DistanceGenerationMode; + +import net.minecraft.client.renderer.texture.NativeImage; + +/** + * + * @author Leonardo Amato + * @version ?? + */ public class DataPointUtil { /* diff --git a/src/main/java/com/seibel/lod/util/DetailDistanceUtil.java b/src/main/java/com/seibel/lod/util/DetailDistanceUtil.java index 578e4b666..e096dbea3 100644 --- a/src/main/java/com/seibel/lod/util/DetailDistanceUtil.java +++ b/src/main/java/com/seibel/lod/util/DetailDistanceUtil.java @@ -1,3 +1,22 @@ +/* + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. + * + * Copyright (C) 2020 James Seibel + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.seibel.lod.util; import com.seibel.lod.config.LodConfig; @@ -6,6 +25,11 @@ import com.seibel.lod.enums.HorizontalQuality; import com.seibel.lod.enums.HorizontalResolution; import com.seibel.lod.wrappers.MinecraftWrapper; +/** + * + * @author Leonardo Amato + * @version ?? + */ public class DetailDistanceUtil { private static final double genMultiplier = 1.0; diff --git a/src/main/java/com/seibel/lod/util/LevelPosUtil.java b/src/main/java/com/seibel/lod/util/LevelPosUtil.java index 142c9c6f9..aea601fb2 100644 --- a/src/main/java/com/seibel/lod/util/LevelPosUtil.java +++ b/src/main/java/com/seibel/lod/util/LevelPosUtil.java @@ -1,5 +1,29 @@ +/* + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. + * + * Copyright (C) 2020 James Seibel + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.seibel.lod.util; +/** + * + * @author Leonardo Amato + * @version ?? + */ public class LevelPosUtil { public static int[] convert(int[] levelPos, byte newDetailLevel) diff --git a/src/main/java/com/seibel/lod/util/LodThreadFactory.java b/src/main/java/com/seibel/lod/util/LodThreadFactory.java index 1c861564c..62369e5bd 100644 --- a/src/main/java/com/seibel/lod/util/LodThreadFactory.java +++ b/src/main/java/com/seibel/lod/util/LodThreadFactory.java @@ -1,3 +1,22 @@ +/* + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. + * + * Copyright (C) 2020 James Seibel + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.seibel.lod.util; import java.util.concurrent.ThreadFactory; diff --git a/src/main/java/com/seibel/lod/util/LodUtil.java b/src/main/java/com/seibel/lod/util/LodUtil.java index 02d413fa7..051836426 100644 --- a/src/main/java/com/seibel/lod/util/LodUtil.java +++ b/src/main/java/com/seibel/lod/util/LodUtil.java @@ -1,5 +1,6 @@ /* - * This file is part of the LOD Mod, licensed under the GNU GPL v3 License. + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. * * Copyright (C) 2020 James Seibel * @@ -49,6 +50,7 @@ import net.minecraft.world.server.ServerWorld; /** * This class holds methods and constants that may be used in multiple places. + * * @author James Seibel * @version 10-13-2021 */ diff --git a/src/main/java/com/seibel/lod/util/ThreadMapUtil.java b/src/main/java/com/seibel/lod/util/ThreadMapUtil.java index b97aa22b1..d3df265fe 100644 --- a/src/main/java/com/seibel/lod/util/ThreadMapUtil.java +++ b/src/main/java/com/seibel/lod/util/ThreadMapUtil.java @@ -1,3 +1,22 @@ +/* + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. + * + * Copyright (C) 2020 James Seibel + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.seibel.lod.util; import static com.seibel.lod.util.LodUtil.DETAIL_OPTIONS; @@ -16,6 +35,7 @@ import net.minecraft.util.Direction; * Holds data used by specific threads so * the data doesn't have to be recreated every * time it is needed. + * * @author Leonardo Amato * @version 9-25-2021 */ diff --git a/src/main/java/com/seibel/lod/wrappers/MinecraftWrapper.java b/src/main/java/com/seibel/lod/wrappers/MinecraftWrapper.java index a0c32fce1..805356e6a 100644 --- a/src/main/java/com/seibel/lod/wrappers/MinecraftWrapper.java +++ b/src/main/java/com/seibel/lod/wrappers/MinecraftWrapper.java @@ -1,6 +1,29 @@ +/* + * This file is part of the Distant Horizon mod (formerly the LOD Mod), + * licensed under the GNU GPL v3 License. + * + * Copyright (C) 2020 James Seibel + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.seibel.lod.wrappers; +import java.awt.Color; +import java.io.File; + import com.seibel.lod.util.LodUtil; + import net.minecraft.client.GameSettings; import net.minecraft.client.MainWindow; import net.minecraft.client.Minecraft; @@ -19,12 +42,10 @@ import net.minecraft.server.integrated.IntegratedServer; import net.minecraft.util.Direction; import net.minecraft.world.DimensionType; -import java.awt.*; -import java.io.File; - /** * A singleton that wraps the Minecraft class * to allow for easier movement between Minecraft versions. + * * @author James Seibel * @version 9-16-2021 */