mirror of
https://github.com/GTNewHorizons/FindIt.git
synced 2026-11-25 02:34:21 +00:00
Spotless
This commit is contained in:
1 parent
64446eef4b
commit
707e8582c7
5 files changed
+21
-15
No files matched your search
@@ -28,7 +28,11 @@ public class FindItConfig {
|
||||
"20",
|
||||
"Maximum number of positions that can be displayed by item/block search").getInt();
|
||||
|
||||
ENABLE_ROTATE_VIEW = config.get(Configuration.CATEGORY_GENERAL, "EnableRotateView", "false", "Rotate player's view when searched").getBoolean();
|
||||
ENABLE_ROTATE_VIEW = config.get(
|
||||
Configuration.CATEGORY_GENERAL,
|
||||
"EnableRotateView",
|
||||
"false",
|
||||
"Rotate player's view when searched").getBoolean();
|
||||
} catch (Exception ignore) {} finally {
|
||||
if (config.hasChanged()) config.save();
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.gtnh.findit.service.blockfinder;
|
||||
|
||||
import com.gtnh.findit.FindItConfig;
|
||||
import static com.gtnh.findit.util.ClientFinderHelperUtils.lookAtTarget;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.entity.EntityClientPlayerMP;
|
||||
import net.minecraft.init.Blocks;
|
||||
@@ -9,6 +10,7 @@ import net.minecraft.item.ItemStack;
|
||||
import org.lwjgl.input.Keyboard;
|
||||
|
||||
import com.gtnh.findit.FindIt;
|
||||
import com.gtnh.findit.FindItConfig;
|
||||
import com.gtnh.findit.FindItNetwork;
|
||||
import com.gtnh.findit.fx.ParticlePosition;
|
||||
import com.gtnh.findit.util.AbstractStackFinder;
|
||||
@@ -16,8 +18,6 @@ import com.gtnh.findit.util.AbstractStackFinder;
|
||||
import codechicken.nei.api.API;
|
||||
import codechicken.nei.guihook.GuiContainerManager;
|
||||
|
||||
import static com.gtnh.findit.util.ClientFinderHelperUtils.lookAtTarget;
|
||||
|
||||
public class ClientBlockFindService extends BlockFindService {
|
||||
|
||||
public ClientBlockFindService() {
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
package com.gtnh.findit.service.itemfinder;
|
||||
|
||||
import com.gtnh.findit.FindItConfig;
|
||||
import static com.gtnh.findit.util.ClientFinderHelperUtils.lookAtTarget;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.entity.EntityClientPlayerMP;
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
@@ -16,6 +20,7 @@ import net.minecraftforge.common.MinecraftForge;
|
||||
import org.lwjgl.input.Keyboard;
|
||||
|
||||
import com.gtnh.findit.FindIt;
|
||||
import com.gtnh.findit.FindItConfig;
|
||||
import com.gtnh.findit.FindItNetwork;
|
||||
import com.gtnh.findit.fx.ParticlePosition;
|
||||
import com.gtnh.findit.fx.SlotHighlighter;
|
||||
@@ -28,11 +33,6 @@ import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import static com.gtnh.findit.util.ClientFinderHelperUtils.lookAtTarget;
|
||||
|
||||
public class ClientItemFindService extends ItemFindService {
|
||||
|
||||
private ContainerHighlightData highlightData = null;
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
package com.gtnh.findit.util;
|
||||
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.ChunkPosition;
|
||||
|
||||
|
||||
public class AxisUtils {
|
||||
|
||||
public static final class AxisPair {
|
||||
|
||||
private final float yaw;
|
||||
private final float pitch;
|
||||
|
||||
@@ -23,7 +24,7 @@ public class AxisUtils {
|
||||
}
|
||||
}
|
||||
|
||||
public static AxisPair calculateAxisPair(Vec3 player, ChunkPosition target){
|
||||
public static AxisPair calculateAxisPair(Vec3 player, ChunkPosition target) {
|
||||
double deltaX = target.chunkPosX - player.xCoord;
|
||||
double deltaY = target.chunkPosY - player.yCoord;
|
||||
double deltaZ = target.chunkPosZ - player.zCoord;
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
package com.gtnh.findit.util;
|
||||
|
||||
import com.gtnh.findit.service.blockfinder.BlockFoundResponse;
|
||||
import com.gtnh.findit.service.itemfinder.ItemFoundResponse;
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.entity.EntityClientPlayerMP;
|
||||
import net.minecraft.util.Vec3;
|
||||
import net.minecraft.world.ChunkPosition;
|
||||
|
||||
import java.util.List;
|
||||
import com.gtnh.findit.service.blockfinder.BlockFoundResponse;
|
||||
import com.gtnh.findit.service.itemfinder.ItemFoundResponse;
|
||||
|
||||
public class ClientFinderHelperUtils {
|
||||
|
||||
|
||||
Reference in new issue
Block a user