Rename "server" package to "util"
This commit is contained in:
parent
48bc060e5c
commit
e452490317
@ -14,7 +14,7 @@ import party._2a03.mc.command.HatCommand;
|
|||||||
import party._2a03.mc.command.HeadCommand;
|
import party._2a03.mc.command.HeadCommand;
|
||||||
import party._2a03.mc.command.HomeCommand;
|
import party._2a03.mc.command.HomeCommand;
|
||||||
import party._2a03.mc.command.SpawnCommand;
|
import party._2a03.mc.command.SpawnCommand;
|
||||||
import party._2a03.mc.server.Config;
|
import party._2a03.mc.util.Config;
|
||||||
|
|
||||||
public class MinecraftTweaks2a03 implements ModInitializer {
|
public class MinecraftTweaks2a03 implements ModInitializer {
|
||||||
private static final Logger LOGGER = LogManager.getLogger();
|
private static final Logger LOGGER = LogManager.getLogger();
|
||||||
|
@ -5,7 +5,7 @@ import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
|||||||
import net.minecraft.server.command.CommandManager;
|
import net.minecraft.server.command.CommandManager;
|
||||||
import net.minecraft.server.command.ServerCommandSource;
|
import net.minecraft.server.command.ServerCommandSource;
|
||||||
import net.minecraft.text.LiteralText;
|
import net.minecraft.text.LiteralText;
|
||||||
import party._2a03.mc.server.Config;
|
import party._2a03.mc.util.Config;
|
||||||
|
|
||||||
public class ConfigCommand {
|
public class ConfigCommand {
|
||||||
public static void register(CommandDispatcher<ServerCommandSource> dispatcher) {
|
public static void register(CommandDispatcher<ServerCommandSource> dispatcher) {
|
||||||
|
@ -8,9 +8,9 @@ import net.minecraft.server.command.ServerCommandSource;
|
|||||||
import net.minecraft.server.network.ServerPlayerEntity;
|
import net.minecraft.server.network.ServerPlayerEntity;
|
||||||
import net.minecraft.text.LiteralText;
|
import net.minecraft.text.LiteralText;
|
||||||
import net.minecraft.util.registry.RegistryKey;
|
import net.minecraft.util.registry.RegistryKey;
|
||||||
import party._2a03.mc.server.Config;
|
import party._2a03.mc.util.Config;
|
||||||
import party._2a03.mc.server.PlayerData;
|
import party._2a03.mc.util.PlayerData;
|
||||||
import party._2a03.mc.server.PlayerPosition;
|
import party._2a03.mc.util.PlayerPosition;
|
||||||
|
|
||||||
public class HomeCommand {
|
public class HomeCommand {
|
||||||
public static void register(CommandDispatcher<ServerCommandSource> dispatcher) {
|
public static void register(CommandDispatcher<ServerCommandSource> dispatcher) {
|
||||||
|
@ -7,8 +7,8 @@ import net.minecraft.server.command.ServerCommandSource;
|
|||||||
import net.minecraft.server.network.ServerPlayerEntity;
|
import net.minecraft.server.network.ServerPlayerEntity;
|
||||||
import net.minecraft.text.LiteralText;
|
import net.minecraft.text.LiteralText;
|
||||||
import net.minecraft.util.registry.RegistryKey;
|
import net.minecraft.util.registry.RegistryKey;
|
||||||
import party._2a03.mc.server.Config;
|
import party._2a03.mc.util.Config;
|
||||||
import party._2a03.mc.server.PlayerPosition;
|
import party._2a03.mc.util.PlayerPosition;
|
||||||
|
|
||||||
public class SpawnCommand {
|
public class SpawnCommand {
|
||||||
public static void register(CommandDispatcher<ServerCommandSource> dispatcher) {
|
public static void register(CommandDispatcher<ServerCommandSource> dispatcher) {
|
||||||
|
@ -14,7 +14,7 @@ import org.spongepowered.asm.mixin.injection.Inject;
|
|||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.Shadow;
|
import org.spongepowered.asm.mixin.Shadow;
|
||||||
import party._2a03.mc.server.Config;
|
import party._2a03.mc.util.Config;
|
||||||
|
|
||||||
@Mixin(RespawnAnchorBlock.class)
|
@Mixin(RespawnAnchorBlock.class)
|
||||||
public abstract class MixinRespawnAnchorBlock extends Block {
|
public abstract class MixinRespawnAnchorBlock extends Block {
|
||||||
|
@ -9,8 +9,8 @@ import org.spongepowered.asm.mixin.injection.Inject;
|
|||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.Shadow;
|
import org.spongepowered.asm.mixin.Shadow;
|
||||||
import party._2a03.mc.server.Config;
|
import party._2a03.mc.util.Config;
|
||||||
import party._2a03.mc.server.PlayerPosition;
|
import party._2a03.mc.util.PlayerPosition;
|
||||||
|
|
||||||
@Mixin(ServerPlayerEntity.class)
|
@Mixin(ServerPlayerEntity.class)
|
||||||
public abstract class MixinServerPlayerEntity extends PlayerEntity {
|
public abstract class MixinServerPlayerEntity extends PlayerEntity {
|
||||||
|
@ -14,7 +14,7 @@ import org.spongepowered.asm.mixin.injection.Inject;
|
|||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.Shadow;
|
import org.spongepowered.asm.mixin.Shadow;
|
||||||
import party._2a03.mc.server.Config;
|
import party._2a03.mc.util.Config;
|
||||||
|
|
||||||
@Mixin(TntBlock.class)
|
@Mixin(TntBlock.class)
|
||||||
public abstract class MixinTntBlock extends Block {
|
public abstract class MixinTntBlock extends Block {
|
||||||
|
@ -9,7 +9,7 @@ import org.spongepowered.asm.mixin.injection.Inject;
|
|||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.Shadow;
|
import org.spongepowered.asm.mixin.Shadow;
|
||||||
import party._2a03.mc.server.Config;
|
import party._2a03.mc.util.Config;
|
||||||
|
|
||||||
@Mixin(TntEntity.class)
|
@Mixin(TntEntity.class)
|
||||||
public abstract class MixinTntEntity extends Entity {
|
public abstract class MixinTntEntity extends Entity {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package party._2a03.mc.server;
|
package party._2a03.mc.util;
|
||||||
|
|
||||||
import com.google.common.collect.Maps;
|
import com.google.common.collect.Maps;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
@ -13,8 +13,8 @@ import org.apache.commons.io.IOUtils;
|
|||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import org.apache.logging.log4j.Logger;
|
import org.apache.logging.log4j.Logger;
|
||||||
import party._2a03.mc.MinecraftTweaks2a03;
|
import party._2a03.mc.MinecraftTweaks2a03;
|
||||||
import party._2a03.mc.server.PlayerData;
|
import party._2a03.mc.util.PlayerData;
|
||||||
import party._2a03.mc.server.PlayerPosition;
|
import party._2a03.mc.util.PlayerPosition;
|
||||||
|
|
||||||
public class Config {
|
public class Config {
|
||||||
private static final Logger LOGGER = LogManager.getLogger();
|
private static final Logger LOGGER = LogManager.getLogger();
|
@ -1,8 +1,8 @@
|
|||||||
package party._2a03.mc.server;
|
package party._2a03.mc.util;
|
||||||
|
|
||||||
import org.json.JSONArray;
|
import org.json.JSONArray;
|
||||||
import org.json.JSONObject;
|
import org.json.JSONObject;
|
||||||
import party._2a03.mc.server.PlayerPosition;
|
import party._2a03.mc.util.PlayerPosition;
|
||||||
|
|
||||||
public class PlayerData {
|
public class PlayerData {
|
||||||
private String uuid;
|
private String uuid;
|
||||||
@ -31,4 +31,4 @@ public class PlayerData {
|
|||||||
json.put("home", home.getJSON());
|
json.put("home", home.getJSON());
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,10 +1,10 @@
|
|||||||
package party._2a03.mc.server;
|
package party._2a03.mc.util;
|
||||||
|
|
||||||
import org.json.JSONArray;
|
import org.json.JSONArray;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
import net.minecraft.util.registry.Registry;
|
import net.minecraft.util.registry.Registry;
|
||||||
import net.minecraft.util.registry.RegistryKey;
|
import net.minecraft.util.registry.RegistryKey;
|
||||||
import party._2a03.mc.server.Config;
|
import party._2a03.mc.util.Config;
|
||||||
|
|
||||||
public class PlayerPosition {
|
public class PlayerPosition {
|
||||||
public double x;
|
public double x;
|
Loading…
Reference in New Issue
Block a user