mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-18 11:39:14 +00:00
humongous spotless apply to make CI happy
This commit is contained in:
1 parent
a0f11f404a
commit
834beb5ac8
114 files changed
+2121
-1858
No files matched your search
@@ -6,20 +6,20 @@ import net.minecraft.inventory.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.MathHelper;
|
||||
|
||||
import com.cricketcraft.chisel.api.IChiselItem;
|
||||
import com.cricketcraft.chisel.api.Statistics;
|
||||
|
||||
import team.chisel.carving.Carving;
|
||||
import team.chisel.utils.General;
|
||||
import team.chisel.utils.GeneralClient;
|
||||
|
||||
import com.cricketcraft.chisel.api.IChiselItem;
|
||||
import com.cricketcraft.chisel.api.Statistics;
|
||||
|
||||
public class SlotChiselSelection extends Slot {
|
||||
|
||||
private final ContainerChisel container;
|
||||
private final InventoryChiselSelection selInventory;
|
||||
|
||||
public SlotChiselSelection(ContainerChisel container, InventoryChiselSelection inv, IInventory iinventory, int i,
|
||||
int j, int k) {
|
||||
int j, int k) {
|
||||
super(iinventory, i, j, k);
|
||||
|
||||
this.container = container;
|
||||
@@ -53,17 +53,17 @@ public class SlotChiselSelection extends Slot {
|
||||
if (selInventory.inventory[InventoryChiselSelection.normalSlots] == null) return;
|
||||
|
||||
player.inventory.setItemStack(
|
||||
new ItemStack(
|
||||
itemstack.getItem(),
|
||||
selInventory.inventory[InventoryChiselSelection.normalSlots].stackSize,
|
||||
itemstack.getItemDamage()));
|
||||
new ItemStack(
|
||||
itemstack.getItem(),
|
||||
selInventory.inventory[InventoryChiselSelection.normalSlots].stackSize,
|
||||
itemstack.getItemDamage()));
|
||||
selInventory.setInventorySlotContents(InventoryChiselSelection.normalSlots, null);
|
||||
}
|
||||
|
||||
selInventory.updateItems();
|
||||
|
||||
if (((IChiselItem) container.chisel.getItem())
|
||||
.onChisel(player.worldObj, container.chisel, General.getVariation(crafted))) {
|
||||
.onChisel(player.worldObj, container.chisel, General.getVariation(crafted))) {
|
||||
container.chisel.damageItem(1, player);
|
||||
if (container.chisel.stackSize <= 0) {
|
||||
player.inventory.mainInventory[player.inventory.currentItem] = null;
|
||||
@@ -73,11 +73,11 @@ public class SlotChiselSelection extends Slot {
|
||||
if (player.worldObj.isRemote) {
|
||||
String sound = Carving.chisel.getVariationSound(crafted.getItem(), crafted.getItemDamage());
|
||||
GeneralClient.playChiselSound(
|
||||
player.worldObj,
|
||||
MathHelper.floor_double(player.posX),
|
||||
MathHelper.floor_double(player.posY),
|
||||
MathHelper.floor_double(player.posZ),
|
||||
sound);
|
||||
player.worldObj,
|
||||
MathHelper.floor_double(player.posX),
|
||||
MathHelper.floor_double(player.posY),
|
||||
MathHelper.floor_double(player.posZ),
|
||||
sound);
|
||||
} else {
|
||||
container.playerInventory.player.addStat(Statistics.blocksChiseled, crafted.stackSize);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user