remove out commentec code

run SA
This commit is contained in:
Martin Robertz committed 2022-11-08 19:34:25 +01:00
1 parent b846e30b67
commit 2b27b551a3
795 files changed
+33663 -37253

No files matched your search

@@ -1,23 +1,21 @@
package WayofTime.alchemicalWizardry.common.tileEntity;
import WayofTime.alchemicalWizardry.api.items.interfaces.ArmourUpgrade;
import WayofTime.alchemicalWizardry.common.NewPacketHandler;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.Packet;
import WayofTime.alchemicalWizardry.api.items.interfaces.ArmourUpgrade;
import WayofTime.alchemicalWizardry.common.NewPacketHandler;
public class TESocket extends TEInventory
{
public static final int sizeInv = 1;
public class TESocket extends TEInventory {
public static final int sizeInv = 1;
private int resultID;
private int resultDamage;
private boolean isActive;
public TESocket()
{
public TESocket() {
super(sizeInv);
resultID = 0;
resultDamage = 0;
@@ -25,8 +23,7 @@ public class TESocket extends TEInventory
}
@Override
public void readFromNBT(NBTTagCompound par1NBTTagCompound)
{
public void readFromNBT(NBTTagCompound par1NBTTagCompound) {
super.readFromNBT(par1NBTTagCompound);
resultID = par1NBTTagCompound.getInteger("resultID");
@@ -35,8 +32,7 @@ public class TESocket extends TEInventory
}
@Override
public void writeToNBT(NBTTagCompound par1NBTTagCompound)
{
public void writeToNBT(NBTTagCompound par1NBTTagCompound) {
super.writeToNBT(par1NBTTagCompound);
par1NBTTagCompound.setInteger("resultID", resultID);
@@ -45,77 +41,62 @@ public class TESocket extends TEInventory
}
@Override
public String getInventoryName()
{
public String getInventoryName() {
return "TESocket";
}
@Override
public int getInventoryStackLimit()
{
public int getInventoryStackLimit() {
return 1;
}
//Logic for the actual block is under here
// Logic for the actual block is under here
@Override
public void updateEntity()
{
public void updateEntity() {
super.updateEntity();
}
public void setActive()
{
public void setActive() {
isActive = false;
}
public boolean isActive()
{
public boolean isActive() {
return isActive;
}
@Override
public Packet getDescriptionPacket()
{
public Packet getDescriptionPacket() {
return NewPacketHandler.getPacket(this);
}
public void handlePacketData(int[] intData)
{
if (intData == null)
{
public void handlePacketData(int[] intData) {
if (intData == null) {
return;
}
if (intData.length == 3)
{
for (int i = 0; i < 1; i++)
{
if (intData[i * 3 + 2] != 0)
{
ItemStack is = new ItemStack(Item.getItemById(intData[i * 3]), intData[i * 3 + 2], intData[i * 3 + 1]);
if (intData.length == 3) {
for (int i = 0; i < 1; i++) {
if (intData[i * 3 + 2] != 0) {
ItemStack is =
new ItemStack(Item.getItemById(intData[i * 3]), intData[i * 3 + 2], intData[i * 3 + 1]);
inv[i] = is;
} else
{
} else {
inv[i] = null;
}
}
}
}
public int[] buildIntDataList()
{
int[] sortList = new int[3]; //1 * 3
public int[] buildIntDataList() {
int[] sortList = new int[3]; // 1 * 3
int pos = 0;
for (ItemStack is : inv)
{
if (is != null)
{
for (ItemStack is : inv) {
if (is != null) {
sortList[pos++] = Item.getIdFromItem(is.getItem());
sortList[pos++] = is.getItemDamage();
sortList[pos++] = is.stackSize;
} else
{
} else {
sortList[pos++] = 0;
sortList[pos++] = 0;
sortList[pos++] = 0;
@@ -126,8 +107,7 @@ public class TESocket extends TEInventory
}
@Override
public boolean isItemValidForSlot(int slot, ItemStack itemstack)
{
public boolean isItemValidForSlot(int slot, ItemStack itemstack) {
return itemstack.getItem() instanceof ArmourUpgrade;
}
}