From b7fc022f909a81e336db130ce4ecbd831d00123b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Ryb=C3=A1rsky?= Date: Fri, 1 Nov 2024 23:38:18 +0100 Subject: [PATCH] Try some stuff --- src/main/java/systems/brn/plasticgun/PlasticGun.java | 5 +---- .../systems/brn/plasticgun/companion/PlasticGunClient.java | 1 - .../java/systems/brn/plasticgun/effects/FlashbangEffect.java | 1 - src/main/java/systems/brn/plasticgun/effects/StunEffect.java | 1 - src/main/java/systems/brn/plasticgun/lib/SimpleItem.java | 3 --- .../java/systems/brn/plasticgun/testing/DamageTester.java | 1 - 6 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/main/java/systems/brn/plasticgun/PlasticGun.java b/src/main/java/systems/brn/plasticgun/PlasticGun.java index 6711a15..a1c7964 100644 --- a/src/main/java/systems/brn/plasticgun/PlasticGun.java +++ b/src/main/java/systems/brn/plasticgun/PlasticGun.java @@ -10,7 +10,6 @@ import net.fabricmc.fabric.api.networking.v1.PayloadTypeRegistry; import net.fabricmc.fabric.api.networking.v1.ServerPlayConnectionEvents; import net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking; import net.fabricmc.fabric.api.object.builder.v1.entity.FabricDefaultAttributeRegistry; -import net.minecraft.entity.Entity; import net.minecraft.entity.EntityType; import net.minecraft.entity.SpawnGroup; import net.minecraft.entity.effect.StatusEffect; @@ -22,7 +21,6 @@ import net.minecraft.registry.RegistryKey; import net.minecraft.registry.RegistryKeys; import net.minecraft.registry.entry.RegistryEntry; import net.minecraft.server.network.ServerPlayerEntity; -import net.minecraft.util.Identifier; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import systems.brn.plasticgun.bullets.BulletEntity; @@ -44,7 +42,6 @@ import systems.brn.plasticgun.testing.DamageTester; import java.util.ArrayList; import java.util.Map; -import static net.fabricmc.loader.impl.FabricLoaderImpl.MOD_ID; import static systems.brn.plasticgun.lib.Util.*; public class PlasticGun implements ModInitializer { @@ -324,8 +321,8 @@ public class PlasticGun implements ModInitializer { PolymerEntityUtils.registerType(SHURIKEN_ENTITY_TYPE); - FabricDefaultAttributeRegistry.register(DAMAGE_TESTER_ENTITY_TYPE, DamageTester.createDamageTesterAttributes()); PolymerEntityUtils.registerType(DAMAGE_TESTER_ENTITY_TYPE); + FabricDefaultAttributeRegistry.register(DAMAGE_TESTER_ENTITY_TYPE, DamageTester.createDamageTesterAttributes()); // Detect item use diff --git a/src/main/java/systems/brn/plasticgun/companion/PlasticGunClient.java b/src/main/java/systems/brn/plasticgun/companion/PlasticGunClient.java index c45601e..837916a 100644 --- a/src/main/java/systems/brn/plasticgun/companion/PlasticGunClient.java +++ b/src/main/java/systems/brn/plasticgun/companion/PlasticGunClient.java @@ -1,7 +1,6 @@ package systems.brn.plasticgun.companion; import net.fabricmc.api.ClientModInitializer; -import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents; import net.fabricmc.fabric.api.client.networking.v1.ClientPlayConnectionEvents; import net.fabricmc.fabric.api.client.rendering.v1.HudRenderCallback; diff --git a/src/main/java/systems/brn/plasticgun/effects/FlashbangEffect.java b/src/main/java/systems/brn/plasticgun/effects/FlashbangEffect.java index 80aede0..6ee804f 100644 --- a/src/main/java/systems/brn/plasticgun/effects/FlashbangEffect.java +++ b/src/main/java/systems/brn/plasticgun/effects/FlashbangEffect.java @@ -5,7 +5,6 @@ import net.minecraft.entity.LivingEntity; import net.minecraft.entity.effect.StatusEffect; import net.minecraft.entity.effect.StatusEffectCategory; import net.minecraft.entity.effect.StatusEffects; -import net.minecraft.server.network.ServerPlayerEntity; import net.minecraft.server.world.ServerWorld; import systems.brn.plasticgun.PlasticGun; import xyz.nucleoid.packettweaker.PacketContext; diff --git a/src/main/java/systems/brn/plasticgun/effects/StunEffect.java b/src/main/java/systems/brn/plasticgun/effects/StunEffect.java index db245f2..2ddee26 100644 --- a/src/main/java/systems/brn/plasticgun/effects/StunEffect.java +++ b/src/main/java/systems/brn/plasticgun/effects/StunEffect.java @@ -6,7 +6,6 @@ import net.minecraft.entity.effect.StatusEffect; import net.minecraft.entity.effect.StatusEffectCategory; import net.minecraft.entity.effect.StatusEffectInstance; import net.minecraft.entity.effect.StatusEffects; -import net.minecraft.server.network.ServerPlayerEntity; import net.minecraft.server.world.ServerWorld; import systems.brn.plasticgun.PlasticGun; import xyz.nucleoid.packettweaker.PacketContext; diff --git a/src/main/java/systems/brn/plasticgun/lib/SimpleItem.java b/src/main/java/systems/brn/plasticgun/lib/SimpleItem.java index 62e6db1..80eb677 100644 --- a/src/main/java/systems/brn/plasticgun/lib/SimpleItem.java +++ b/src/main/java/systems/brn/plasticgun/lib/SimpleItem.java @@ -4,10 +4,7 @@ import eu.pb4.polymer.core.api.item.PolymerItem; import eu.pb4.polymer.core.api.item.SimplePolymerItem; import eu.pb4.polymer.resourcepack.api.PolymerResourcePackUtils; import net.minecraft.item.*; -import net.minecraft.server.network.ServerPlayerEntity; import net.minecraft.util.Identifier; -import org.jetbrains.annotations.Nullable; -import systems.brn.plasticgun.PlasticGun; import xyz.nucleoid.packettweaker.PacketContext; public abstract class SimpleItem extends SimplePolymerItem implements PolymerItem { diff --git a/src/main/java/systems/brn/plasticgun/testing/DamageTester.java b/src/main/java/systems/brn/plasticgun/testing/DamageTester.java index 8b50204..34d916a 100644 --- a/src/main/java/systems/brn/plasticgun/testing/DamageTester.java +++ b/src/main/java/systems/brn/plasticgun/testing/DamageTester.java @@ -10,7 +10,6 @@ import net.minecraft.entity.damage.DamageSource; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.ItemStack; import net.minecraft.item.Items; -import net.minecraft.server.network.ServerPlayerEntity; import net.minecraft.server.world.ServerWorld; import net.minecraft.text.Text; import net.minecraft.util.Arm;