Optimized imports.
This commit is contained in:
@ -1,6 +1,5 @@
|
|||||||
package com.micle.loginprotection;
|
package com.micle.loginprotection;
|
||||||
|
|
||||||
import com.micle.loginprotection.data.ProtectedPlayer;
|
|
||||||
import com.micle.loginprotection.data.ProtectedPlayers;
|
import com.micle.loginprotection.data.ProtectedPlayers;
|
||||||
import com.micle.loginprotection.setup.Registration;
|
import com.micle.loginprotection.setup.Registration;
|
||||||
import net.minecraft.util.ResourceLocation;
|
import net.minecraft.util.ResourceLocation;
|
||||||
@ -9,9 +8,6 @@ import net.minecraftforge.fml.common.Mod;
|
|||||||
import net.minecraftforge.fml.network.NetworkRegistry;
|
import net.minecraftforge.fml.network.NetworkRegistry;
|
||||||
import net.minecraftforge.fml.network.simple.SimpleChannel;
|
import net.minecraftforge.fml.network.simple.SimpleChannel;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
@Mod(LoginProtection.MOD_ID)
|
@Mod(LoginProtection.MOD_ID)
|
||||||
public class LoginProtection {
|
public class LoginProtection {
|
||||||
public static final String MOD_ID = "loginprotection";
|
public static final String MOD_ID = "loginprotection";
|
||||||
|
|||||||
@ -1,10 +1,6 @@
|
|||||||
package com.micle.loginprotection.data;
|
package com.micle.loginprotection.data;
|
||||||
|
|
||||||
import net.minecraft.entity.ai.attributes.Attribute;
|
|
||||||
import net.minecraft.entity.ai.attributes.Attributes;
|
|
||||||
import net.minecraft.entity.player.ServerPlayerEntity;
|
import net.minecraft.entity.player.ServerPlayerEntity;
|
||||||
import net.minecraft.potion.EffectInstance;
|
|
||||||
import net.minecraft.potion.Effects;
|
|
||||||
import net.minecraft.util.text.StringTextComponent;
|
import net.minecraft.util.text.StringTextComponent;
|
||||||
import net.minecraftforge.fml.server.ServerLifecycleHooks;
|
import net.minecraftforge.fml.server.ServerLifecycleHooks;
|
||||||
|
|
||||||
|
|||||||
@ -2,8 +2,8 @@ package com.micle.loginprotection.events;
|
|||||||
|
|
||||||
import com.micle.loginprotection.LoginProtection;
|
import com.micle.loginprotection.LoginProtection;
|
||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
|
||||||
import net.minecraftforge.event.entity.living.LivingDamageEvent;
|
import net.minecraftforge.event.entity.living.LivingDamageEvent;
|
||||||
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||||
|
|
||||||
public class OnPlayerDamageEventHandler {
|
public class OnPlayerDamageEventHandler {
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
|
|||||||
@ -1,10 +1,7 @@
|
|||||||
package com.micle.loginprotection.events;
|
package com.micle.loginprotection.events;
|
||||||
|
|
||||||
import com.micle.loginprotection.LoginProtection;
|
import com.micle.loginprotection.LoginProtection;
|
||||||
import com.micle.loginprotection.data.ProtectedPlayer;
|
|
||||||
import net.minecraft.entity.LivingEntity;
|
|
||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
import net.minecraftforge.event.entity.EntityJoinWorldEvent;
|
|
||||||
import net.minecraftforge.event.entity.player.PlayerEvent;
|
import net.minecraftforge.event.entity.player.PlayerEvent;
|
||||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||||
|
|
||||||
|
|||||||
@ -4,9 +4,7 @@ import com.micle.loginprotection.LoginProtection;
|
|||||||
import net.minecraft.entity.player.ServerPlayerEntity;
|
import net.minecraft.entity.player.ServerPlayerEntity;
|
||||||
import net.minecraft.network.PacketBuffer;
|
import net.minecraft.network.PacketBuffer;
|
||||||
import net.minecraft.util.text.StringTextComponent;
|
import net.minecraft.util.text.StringTextComponent;
|
||||||
import net.minecraftforge.fml.network.NetworkDirection;
|
|
||||||
import net.minecraftforge.fml.network.NetworkEvent;
|
import net.minecraftforge.fml.network.NetworkEvent;
|
||||||
import net.minecraftforge.fml.network.PacketDistributor;
|
|
||||||
|
|
||||||
import java.util.function.Supplier;
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user