Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
Took 2 minutes
  • Loading branch information
xkball committed Dec 2, 2024
1 parent e33dc54 commit 9e51812
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
8 changes: 0 additions & 8 deletions src/main/java/org/teacon/powertool/client/ClientEvents.java
Original file line number Diff line number Diff line change
@@ -1,35 +1,27 @@
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;
import net.minecraft.client.model.geom.ModelLayers;
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit 9e51812

Please sign in to comment.