[ci skip] spotlessApply with the new settings

This commit is contained in:
Jason Mitchell committed 2023-01-28 18:04:28 -08:00
1 parent 83698cb73c
commit 84c2239244
561 files changed
+8872 -9300

No files matched your search

@@ -6,11 +6,14 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import net.minecraftforge.client.IItemRenderer;
import org.lwjgl.opengl.*;
import tconstruct.TConstruct;
import tconstruct.library.tools.ToolCore;
public class ToolCoreRenderer implements IItemRenderer {
private final boolean isEntity;
private final boolean noEntityTranslation;
@@ -66,19 +69,17 @@ public class ToolCoreRenderer implements IItemRenderer {
// (requires more logic rewrite than it sounds like)
IIcon[] tempParts = new IIcon[iconParts];
label:
{
label: {
if (!isInventory && ent instanceof EntityPlayer) {
EntityPlayer player = (EntityPlayer) ent;
ItemStack itemInUse = player.getItemInUse();
if (itemInUse != null) {
int useCount = player.getItemInUseCount();
for (int i = iconParts; i-- > 0; )
tempParts[i] = tool.getIcon(item, i, player, itemInUse, useCount);
for (int i = iconParts; i-- > 0;) tempParts[i] = tool.getIcon(item, i, player, itemInUse, useCount);
break label;
}
}
for (int i = iconParts; i-- > 0; ) tempParts[i] = tool.getIcon(item, i);
for (int i = iconParts; i-- > 0;) tempParts[i] = tool.getIcon(item, i);
}
int count = 0;
@@ -164,9 +165,8 @@ public class ToolCoreRenderer implements IItemRenderer {
GL11.glTranslatef(0, -4 / 16f, 0);
break;
case ENTITY:
if (!noEntityTranslation)
GL11.glTranslatef(
-0.5f, 0f, depth); // correction of the rotation point when items lie on the ground
if (!noEntityTranslation) GL11.glTranslatef(-0.5f, 0f, depth); // correction of the rotation point
// when items lie on the ground
break;
default:
}