9
0
mirror of https://github.com/BX-Team/DivineMC.git synced 2025-12-22 08:19:19 +00:00

rename packages from space to org

This commit is contained in:
NONPLAYT
2025-02-12 18:37:11 +03:00
parent ff31f31b06
commit 75598b8089
56 changed files with 276 additions and 272 deletions

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.command;
package org.bxteam.divinemc.command;
import io.papermc.paper.command.CommandUtil;
import it.unimi.dsi.fastutil.Pair;
@@ -10,8 +10,9 @@ import org.bukkit.command.CommandSender;
import org.bukkit.permissions.Permission;
import org.bukkit.permissions.PermissionDefault;
import org.bukkit.plugin.PluginManager;
import org.bxteam.divinemc.command.subcommands.ReloadCommand;
import org.bxteam.divinemc.command.subcommands.VersionCommand;
import org.jetbrains.annotations.Nullable;
import space.bxteam.divinemc.command.subcommands.*;
import java.util.*;
import java.util.stream.Collectors;

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.command;
package org.bxteam.divinemc.command;
import net.minecraft.server.MinecraftServer;
import org.bukkit.command.Command;

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.command;
package org.bxteam.divinemc.command;
import org.bukkit.command.CommandSender;
import org.bukkit.permissions.Permission;

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.command;
package org.bxteam.divinemc.command;
import org.bukkit.command.CommandSender;
import org.bukkit.permissions.Permission;

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.command.subcommands;
package org.bxteam.divinemc.command.subcommands;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.level.ServerLevel;
@@ -6,9 +6,9 @@ import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.permissions.PermissionDefault;
import space.bxteam.divinemc.command.DivineCommand;
import space.bxteam.divinemc.command.DivineSubCommandPermission;
import space.bxteam.divinemc.configuration.DivineConfig;
import org.bxteam.divinemc.command.DivineCommand;
import org.bxteam.divinemc.command.DivineSubCommandPermission;
import org.bxteam.divinemc.configuration.DivineConfig;
import java.io.File;

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.command.subcommands;
package org.bxteam.divinemc.command.subcommands;
import net.minecraft.server.MinecraftServer;
import org.bukkit.command.Command;
@@ -7,8 +7,8 @@ import org.bukkit.permissions.PermissionDefault;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.framework.qual.DefaultQualifier;
import org.jetbrains.annotations.Nullable;
import space.bxteam.divinemc.command.DivineCommand;
import space.bxteam.divinemc.command.DivineSubCommandPermission;
import org.bxteam.divinemc.command.DivineCommand;
import org.bxteam.divinemc.command.DivineSubCommandPermission;
@DefaultQualifier(NonNull.class)
public final class VersionCommand extends DivineSubCommandPermission {

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.configuration;
package org.bxteam.divinemc.configuration;
import com.google.common.base.Throwables;
import com.google.common.collect.ImmutableMap;
@@ -26,7 +26,7 @@ public class DivineConfig {
+ "join us in our Discord server.\n"
+ "\n"
+ "Discord: https://discord.gg/p7cxhw7E2M \n"
+ "Docs: https://docs.bx-team.space/documentation/divinemc/about \n"
+ "Docs: https://docs.bxteam.org/documentation/divinemc/about \n"
+ "New builds: https://github.com/DivineMC/DivineMC/releases/latest";
private static File CONFIG_FILE;
public static YamlConfiguration config;

View File

@@ -1,16 +1,16 @@
package space.bxteam.divinemc.configuration;
package org.bxteam.divinemc.configuration;
import org.apache.commons.lang.BooleanUtils;
import org.bukkit.World;
import org.bukkit.configuration.ConfigurationSection;
import space.bxteam.divinemc.region.RegionFileFormat;
import org.bxteam.divinemc.region.RegionFileFormat;
import java.util.List;
import java.util.Map;
import java.util.function.Predicate;
import java.util.logging.Level;
import static space.bxteam.divinemc.configuration.DivineConfig.log;
import static org.bxteam.divinemc.configuration.DivineConfig.log;
@SuppressWarnings("unused")
public class DivineWorldConfig {

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.pathfinding;
package org.bxteam.divinemc.pathfinding;
import net.minecraft.core.BlockPos;
import net.minecraft.world.entity.Entity;

View File

@@ -1,8 +1,9 @@
package space.bxteam.divinemc.pathfinding;
package org.bxteam.divinemc.pathfinding;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import net.minecraft.server.MinecraftServer;
import net.minecraft.world.level.pathfinder.Path;
import org.bxteam.divinemc.configuration.DivineConfig;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@@ -15,8 +16,8 @@ import java.util.function.Consumer;
public class AsyncPathProcessor {
private static final Executor pathProcessingExecutor = new ThreadPoolExecutor(
1,
space.bxteam.divinemc.configuration.DivineConfig.asyncPathfindingMaxThreads,
space.bxteam.divinemc.configuration.DivineConfig.asyncPathfindingKeepalive, TimeUnit.SECONDS,
DivineConfig.asyncPathfindingMaxThreads,
DivineConfig.asyncPathfindingKeepalive, TimeUnit.SECONDS,
new LinkedBlockingQueue<>(),
new ThreadFactoryBuilder()
.setNameFormat("DivineMC Async Pathfinding Thread - %d")

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.pathfinding;
package org.bxteam.divinemc.pathfinding;
import net.minecraft.world.level.pathfinder.NodeEvaluator;
import org.apache.commons.lang.Validate;

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.pathfinding;
package org.bxteam.divinemc.pathfinding;
import net.minecraft.world.level.pathfinder.NodeEvaluator;
import net.minecraft.world.level.pathfinder.SwimNodeEvaluator;

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.pathfinding;
package org.bxteam.divinemc.pathfinding;
import net.minecraft.world.level.pathfinder.NodeEvaluator;
import org.jetbrains.annotations.NotNull;

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.pathfinding;
package org.bxteam.divinemc.pathfinding;
import net.minecraft.world.level.pathfinder.*;

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.pathfinding;
package org.bxteam.divinemc.pathfinding;
public enum PathProcessState {
WAITING,

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.region;
package org.bxteam.divinemc.region;
import java.io.DataInputStream;
import java.io.DataOutputStream;

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.region;
package org.bxteam.divinemc.region;
import java.io.IOException;
import java.nio.file.Path;
@@ -7,7 +7,7 @@ import net.minecraft.world.level.chunk.storage.RegionFileVersion;
import net.minecraft.world.level.chunk.storage.RegionStorageInfo;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import space.bxteam.divinemc.configuration.DivineConfig;
import org.bxteam.divinemc.configuration.DivineConfig;
public class AbstractRegionFileFactory {
@Contract("_, _, _, _ -> new")

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.region;
package org.bxteam.divinemc.region;
import ca.spottedleaf.moonrise.patches.chunk_system.io.MoonriseRegionFileIO;
import com.github.luben.zstd.ZstdInputStream;
@@ -30,7 +30,7 @@ import net.jpountz.lz4.LZ4FastDecompressor;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.world.level.ChunkPos;
import org.slf4j.Logger;
import space.bxteam.divinemc.configuration.DivineConfig;
import org.bxteam.divinemc.configuration.DivineConfig;
public class LinearRegionFile implements AbstractRegionFile {
private static final long SUPERBLOCK = -4323716122432332390L;

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.region;
package org.bxteam.divinemc.region;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;

View File

@@ -1,7 +1,8 @@
package space.bxteam.divinemc.seed;
package org.bxteam.divinemc.seed;
import com.google.common.collect.Iterables;
import net.minecraft.server.level.ServerLevel;
import org.bxteam.divinemc.configuration.DivineConfig;
import java.math.BigInteger;
import java.security.SecureRandom;
@@ -36,7 +37,7 @@ public class Globals {
}
public static void setupGlobals(ServerLevel world) {
if (!space.bxteam.divinemc.configuration.DivineConfig.enableSecureSeed) return;
if (!DivineConfig.enableSecureSeed) return;
long[] seed = world.getServer().getWorldData().worldGenOptions().featureSeed();
System.arraycopy(seed, 0, worldSeed, 0, WORLD_SEED_LONGS);

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.seed;
package org.bxteam.divinemc.seed;
public class Hashing {
// https://en.wikipedia.org/wiki/BLAKE_(hash_function)

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.seed;
package org.bxteam.divinemc.seed;
import net.minecraft.util.Mth;
import net.minecraft.util.RandomSource;

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.tracker;
package org.bxteam.divinemc.tracker;
import ca.spottedleaf.moonrise.common.list.ReferenceList;
import ca.spottedleaf.moonrise.common.misc.NearbyPlayers;
@@ -13,6 +13,7 @@ import net.minecraft.server.level.ServerLevel;
import net.minecraft.world.entity.Entity;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.bxteam.divinemc.configuration.DivineConfig;
import java.util.concurrent.Executor;
import java.util.concurrent.LinkedBlockingQueue;
@@ -31,8 +32,8 @@ public class MultithreadedTracker {
private static final Executor trackerExecutor = new ThreadPoolExecutor(
1,
space.bxteam.divinemc.configuration.DivineConfig.asyncEntityTrackerMaxThreads,
space.bxteam.divinemc.configuration.DivineConfig.asyncEntityTrackerKeepalive, TimeUnit.SECONDS,
DivineConfig.asyncEntityTrackerMaxThreads,
DivineConfig.asyncEntityTrackerKeepalive, TimeUnit.SECONDS,
new LinkedBlockingQueue<>(),
new ThreadFactoryBuilder()
.setThreadFactory(
@@ -55,7 +56,7 @@ public class MultithreadedTracker {
public static void tick(ChunkSystemServerLevel level) {
try {
if (!space.bxteam.divinemc.configuration.DivineConfig.multithreadedCompatModeEnabled) {
if (!DivineConfig.multithreadedCompatModeEnabled) {
tickAsync(level);
} else {
tickAsyncWithCompatMode(level);

View File

@@ -1,7 +1,7 @@
package space.bxteam.divinemc.util;
package org.bxteam.divinemc.util;
import net.minecraft.Util;
import space.bxteam.divinemc.configuration.DivineConfig;
import org.bxteam.divinemc.configuration.DivineConfig;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutorService;

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.util;
package org.bxteam.divinemc.util;
import it.unimi.dsi.fastutil.ints.IntOpenHashSet;
import it.unimi.dsi.fastutil.objects.ObjectArrayList;

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.util;
package org.bxteam.divinemc.util;
import it.unimi.dsi.fastutil.doubles.DoubleArrayList;

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.util.c2me;
package org.bxteam.divinemc.util.c2me;
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.util.carpetams;
package org.bxteam.divinemc.util.carpetams;
import com.google.common.cache.LoadingCache;
import net.minecraft.core.BlockPos;

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.util.lithium;
package org.bxteam.divinemc.util.lithium;
import net.minecraft.util.Mth;

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.util.lithium;
package org.bxteam.divinemc.util.lithium;
import it.unimi.dsi.fastutil.longs.LongArrayList;
import it.unimi.dsi.fastutil.longs.LongList;

View File

@@ -1,4 +1,4 @@
package space.bxteam.divinemc.util.lithium;
package org.bxteam.divinemc.util.lithium;
import it.unimi.dsi.fastutil.longs.LongIterator;
import it.unimi.dsi.fastutil.longs.LongList;