From 9e5181216cd156ba275059a7591fa6fa08afc500 Mon Sep 17 00:00:00 2001 From: xkball <45330674+xkball@users.noreply.github.com> Date: Mon, 2 Dec 2024 16:30:05 +0800 Subject: [PATCH] clean up Took 2 minutes --- .../java/org/teacon/powertool/client/ClientEvents.java | 8 -------- .../teacon/powertool/datagen/ModBlockModelProvider.java | 1 - .../org/teacon/powertool/entity/MartingCarEntity.java | 6 +----- 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/main/java/org/teacon/powertool/client/ClientEvents.java b/src/main/java/org/teacon/powertool/client/ClientEvents.java index 72709a0..b462bf8 100644 --- a/src/main/java/org/teacon/powertool/client/ClientEvents.java +++ b/src/main/java/org/teacon/powertool/client/ClientEvents.java @@ -1,7 +1,6 @@ package org.teacon.powertool.client; import com.mojang.blaze3d.platform.Window; -import net.minecraft.ChatFormatting; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.GuiGraphics; import net.minecraft.client.gui.screens.inventory.CommandBlockEditScreen; @@ -9,27 +8,20 @@ import net.minecraft.client.renderer.entity.BoatRenderer; import net.minecraft.client.renderer.entity.MinecartRenderer; import net.minecraft.network.chat.Component; -import net.minecraft.resources.ResourceLocation; import net.minecraft.world.item.ItemStack; -import net.minecraft.world.level.block.entity.BlockEntity; -import net.minecraft.world.phys.BlockHitResult; -import net.minecraft.world.phys.HitResult; import net.neoforged.api.distmarker.Dist; import net.neoforged.bus.api.SubscribeEvent; import net.neoforged.fml.common.EventBusSubscriber; import net.neoforged.neoforge.client.event.ClientPlayerNetworkEvent; import net.neoforged.neoforge.client.event.ClientTickEvent; import net.neoforged.neoforge.client.event.EntityRenderersEvent; -import net.neoforged.neoforge.client.event.RegisterGuiLayersEvent; import net.neoforged.neoforge.client.event.RegisterMenuScreensEvent; import net.neoforged.neoforge.client.event.ScreenEvent; -import net.neoforged.neoforge.client.gui.VanillaGuiLayers; import org.joml.Vector2i; import org.lwjgl.glfw.GLFW; import org.teacon.powertool.PowerTool; import org.teacon.powertool.block.PowerToolBlocks; import org.teacon.powertool.block.entity.PeriodicCommandBlockEntity; -import org.teacon.powertool.block.entity.RegisterBlockEntity; import org.teacon.powertool.client.gui.RegisterScreen; import org.teacon.powertool.client.gui.TrashCanWithContainerScreen; import org.teacon.powertool.client.renders.entity.FenceKnotRenderer; diff --git a/src/main/java/org/teacon/powertool/datagen/ModBlockModelProvider.java b/src/main/java/org/teacon/powertool/datagen/ModBlockModelProvider.java index 669489d..75dd926 100644 --- a/src/main/java/org/teacon/powertool/datagen/ModBlockModelProvider.java +++ b/src/main/java/org/teacon/powertool/datagen/ModBlockModelProvider.java @@ -13,7 +13,6 @@ import org.teacon.powertool.block.cosmetical.CosmeticFurnace; import org.teacon.powertool.block.PowerToolBlocks; -import java.util.List; import java.util.Objects; diff --git a/src/main/java/org/teacon/powertool/entity/MartingCarEntity.java b/src/main/java/org/teacon/powertool/entity/MartingCarEntity.java index 1da3cb5..18fc566 100644 --- a/src/main/java/org/teacon/powertool/entity/MartingCarEntity.java +++ b/src/main/java/org/teacon/powertool/entity/MartingCarEntity.java @@ -26,14 +26,10 @@ import net.minecraft.world.phys.AABB; import net.minecraft.world.phys.Vec3; import net.neoforged.neoforge.common.NeoForgeMod; -import net.neoforged.neoforge.network.PacketDistributor; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.teacon.powertool.PowerTool; -import org.teacon.powertool.client.overlay.ClientDebugCharts; import org.teacon.powertool.item.PowerToolItems; -import org.teacon.powertool.network.client.RecordDebugData; -import org.teacon.powertool.utils.VanillaUtils; import javax.annotation.ParametersAreNonnullByDefault; import java.util.List; @@ -440,7 +436,7 @@ public void aiStep() { this.zza *= 0.98F; this.updateFallFlying(); AABB aabb = this.getBoundingBox(); - Vec3 vec31 = new Vec3((double)this.xxa, (double)this.yya, (double)this.zza); + Vec3 vec31 = new Vec3(this.xxa, this.yya, this.zza); if (this.hasEffect(MobEffects.SLOW_FALLING) || this.hasEffect(MobEffects.LEVITATION)) { this.resetFallDistance(); }