Skip to content

Commit

Permalink
Cleaned up unused imports, why not
Browse files Browse the repository at this point in the history
  • Loading branch information
floral-qua-floral committed Dec 16, 2024
1 parent 4b3671b commit 86d0aa7
Show file tree
Hide file tree
Showing 20 changed files with 8 additions and 41 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package com.fqf.mario_qua_mario;

import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.fabricmc.api.ModInitializer;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import net.minecraft.util.Identifier;
import net.minecraft.util.hit.BlockHitResult;
import net.minecraft.util.hit.EntityHitResult;
import net.minecraft.util.hit.HitResult;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.fqf.mario_qua_mario.mariodata;

import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.util.Identifier;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.Identifier;

import java.util.HashSet;
import java.util.Set;

public interface IMarioData {
PlayerEntity getMario();
boolean isClient();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.fqf.mario_qua_mario.mariodata;

import net.minecraft.util.Pair;
import net.minecraft.util.math.Direction;
import net.minecraft.util.math.Vec3d;
import org.jetbrains.annotations.NotNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.fqf.mario_qua_mario;

import net.fabricmc.api.ModInitializer;

import net.minecraft.util.Identifier;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.fqf.mario_qua_mario.actions.generic;

import com.fqf.mario_qua_mario.MarioQuaMarioContent;
import com.fqf.mario_qua_mario.definitions.actions.util.*;
import com.fqf.mario_qua_mario.definitions.actions.util.EvaluatorEnvironment;
import com.fqf.mario_qua_mario.definitions.actions.util.TransitionDefinition;
import com.fqf.mario_qua_mario.mariodata.IMarioTravelData;
import net.minecraft.sound.SoundEvents;
import net.minecraft.util.Identifier;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
package com.fqf.mario_qua_mario;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.client.network.OtherClientPlayerEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.server.network.ServerPlayerEntity;

public class MarioQuaMarioClient implements ClientModInitializer {
// This is in the client sources
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.entity.MovementType;
import net.minecraft.entity.player.PlayerEntity;
import org.jetbrains.annotations.Nullable;

public class MarioMainClientData extends MarioMoveableData implements IMarioClientDataImpl {
private ClientPlayerEntity mario;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package com.fqf.mario_qua_mario.mixin.client;

import com.fqf.mario_qua_mario.mariodata.injections.MarioMainClientDataHolder;
import com.fqf.mario_qua_mario.mariodata.MarioMainClientData;
import com.fqf.mario_qua_mario.mariodata.MarioPlayerData;
import com.fqf.mario_qua_mario.mixin.PlayerEntityMarioDataMixin;
import com.fqf.mario_qua_mario.mariodata.injections.MarioMainClientDataHolder;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.network.ClientPlayNetworkHandler;
import net.minecraft.client.network.ClientPlayerEntity;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package com.fqf.mario_qua_mario.mixin.client;

import com.fqf.mario_qua_mario.mariodata.MarioOtherClientData;
import com.fqf.mario_qua_mario.mariodata.injections.MarioOtherClientDataHolder;
import com.fqf.mario_qua_mario.mariodata.MarioPlayerData;
import com.fqf.mario_qua_mario.mixin.PlayerEntityMarioDataMixin;
import com.fqf.mario_qua_mario.mariodata.injections.MarioOtherClientDataHolder;
import com.mojang.authlib.GameProfile;
import net.minecraft.client.network.OtherClientPlayerEntity;
import net.minecraft.client.world.ClientWorld;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.fqf.mario_qua_mario;

import com.fqf.mario_qua_mario.mariodata.MarioServerPlayerData;
import com.fqf.mario_qua_mario.packets.MarioDataPackets;
import com.fqf.mario_qua_mario.registries.RegistryManager;
import com.fqf.mario_qua_mario.registries.actions.AbstractParsedAction;
Expand Down
3 changes: 0 additions & 3 deletions mod/src/main/java/com/fqf/mario_qua_mario/MarioQuaMario.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

import com.fqf.mario_qua_mario.registries.RegistryManager;
import net.fabricmc.api.ModInitializer;

import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.util.Identifier;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.fqf.mario_qua_mario.mariodata;

import com.fqf.mario_qua_mario.MarioQuaMario;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.util.Identifier;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.fqf.mario_qua_mario.packets;

import com.fqf.mario_qua_mario.MarioQuaMario;
import com.fqf.mario_qua_mario.mariodata.MarioServerPlayerData;
import com.fqf.mario_qua_mario.registries.RegistryManager;
import com.fqf.mario_qua_mario.registries.actions.AbstractParsedAction;
import net.fabricmc.fabric.api.networking.v1.PayloadTypeRegistry;
Expand All @@ -10,7 +9,6 @@
import net.minecraft.network.codec.PacketCodec;
import net.minecraft.network.codec.PacketCodecs;
import net.minecraft.network.packet.CustomPayload;
import net.minecraft.registry.entry.RegistryEntry;
import net.minecraft.server.network.ServerPlayerEntity;

public class MarioDataPackets {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
package com.fqf.mario_qua_mario.packets;

import com.fqf.mario_qua_mario.mariodata.MarioPlayerData;
import com.fqf.mario_qua_mario.mariodata.MarioServerPlayerData;
import com.fqf.mario_qua_mario.registries.actions.AbstractParsedAction;
import net.fabricmc.fabric.api.networking.v1.PlayerLookup;
import net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking;
import net.minecraft.network.packet.CustomPayload;
import net.minecraft.server.network.ServerPlayerEntity;

import java.util.Collection;

public class MarioPackets {
public static void register() {
MarioDataPackets.SetActionS2CPayload.register();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.fqf.mario_qua_mario.registries.actions;

import com.fqf.mario_qua_mario.MarioQuaMario;
import com.fqf.mario_qua_mario.definitions.actions.util.IncompleteActionDefinition;
import com.fqf.mario_qua_mario.definitions.actions.util.*;
import com.fqf.mario_qua_mario.mariodata.MarioMoveableData;
import com.fqf.mario_qua_mario.registries.ParsedMarioThing;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
package com.fqf.mario_qua_mario.registries.actions;

import com.fqf.mario_qua_mario.MarioAbstractClientHelper;
import com.fqf.mario_qua_mario.MarioQuaMario;
import com.fqf.mario_qua_mario.definitions.actions.*;
import com.fqf.mario_qua_mario.definitions.actions.util.IncompleteActionDefinition;
import com.fqf.mario_qua_mario.definitions.actions.util.TransitionInjectionDefinition;
import com.fqf.mario_qua_mario.mariodata.IMarioClientData;
import com.fqf.mario_qua_mario.mariodata.IMarioData;
import com.fqf.mario_qua_mario.mariodata.MarioMoveableData;
import com.fqf.mario_qua_mario.mariodata.MarioPlayerData;
import com.fqf.mario_qua_mario.registries.actions.parsed.*;
import net.minecraft.util.Identifier;
import net.minecraft.util.math.random.RandomSeed;

import java.util.HashMap;
import java.util.List;
import java.util.Set;

public class ParsedActionHelper {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.Objects;

public record ParsedTransition(
@NotNull AbstractParsedAction targetAction,
@NotNull TransitionDefinition.Evaluator evaluator,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package com.fqf.mario_qua_mario.registries.actions;

import com.fqf.mario_qua_mario.definitions.actions.*;
import com.fqf.mario_qua_mario.definitions.actions.AirborneActionDefinition;
import com.fqf.mario_qua_mario.definitions.actions.AquaticActionDefinition;
import com.fqf.mario_qua_mario.definitions.actions.GroundedActionDefinition;
import com.fqf.mario_qua_mario.definitions.actions.WallboundActionDefinition;
import com.fqf.mario_qua_mario.definitions.actions.util.IncompleteActionDefinition;
import com.fqf.mario_qua_mario.definitions.actions.util.TransitionDefinition;
import com.fqf.mario_qua_mario.mariodata.IMarioReadableMotionData;
Expand Down

0 comments on commit 86d0aa7

Please sign in to comment.