mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 14:39:43 +00:00
Full Imports and Code Format Optimization
This commit is contained in:
1 parent
250edf099c
commit
6815f579a7
1192 files changed
+60344
-62167
No files matched your search
@@ -4,19 +4,19 @@ import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.inventory.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class SlotValid extends Slot{
|
||||
private boolean canPutIn = true;
|
||||
public class SlotValid extends Slot {
|
||||
private boolean canPutIn = true;
|
||||
|
||||
public SlotValid(IInventory par1iInventory, int par2, int par3, int par4) {
|
||||
super(par1iInventory, par2, par3, par4);
|
||||
}
|
||||
|
||||
public SlotValid(IInventory par1iInventory, int par2, int par3, int par4, boolean bo) {
|
||||
super(par1iInventory, par2, par3, par4);
|
||||
canPutIn = bo;
|
||||
}
|
||||
|
||||
public boolean isItemValid(ItemStack par1ItemStack){
|
||||
public SlotValid(IInventory par1iInventory, int par2, int par3, int par4) {
|
||||
super(par1iInventory, par2, par3, par4);
|
||||
}
|
||||
|
||||
public SlotValid(IInventory par1iInventory, int par2, int par3, int par4, boolean bo) {
|
||||
super(par1iInventory, par2, par3, par4);
|
||||
canPutIn = bo;
|
||||
}
|
||||
|
||||
public boolean isItemValid(ItemStack par1ItemStack) {
|
||||
return canPutIn && inventory.isItemValidForSlot(0, par1ItemStack);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user