pick 97420a31d The big reformat of 2020
This commit is contained in:
@@ -18,52 +18,42 @@
|
||||
|
||||
package appeng.container.slot;
|
||||
|
||||
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.items.IItemHandler;
|
||||
|
||||
public class SlotInaccessible extends AppEngSlot {
|
||||
|
||||
public class SlotInaccessible extends AppEngSlot
|
||||
{
|
||||
private ItemStack dspStack = ItemStack.EMPTY;
|
||||
|
||||
private ItemStack dspStack = ItemStack.EMPTY;
|
||||
public SlotInaccessible(final IItemHandler i, final int slotIdx, final int x, final int y) {
|
||||
super(i, slotIdx, x, y);
|
||||
}
|
||||
|
||||
public SlotInaccessible( final IItemHandler i, final int slotIdx, final int x, final int y )
|
||||
{
|
||||
super( i, slotIdx, x, y );
|
||||
}
|
||||
@Override
|
||||
public boolean isItemValid(final ItemStack i) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isItemValid( final ItemStack i )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@Override
|
||||
public void onSlotChanged() {
|
||||
super.onSlotChanged();
|
||||
this.dspStack = ItemStack.EMPTY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSlotChanged()
|
||||
{
|
||||
super.onSlotChanged();
|
||||
this.dspStack = ItemStack.EMPTY;
|
||||
}
|
||||
@Override
|
||||
public boolean canTakeStack(final PlayerEntity par1PlayerEntity) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canTakeStack( final PlayerEntity par1PlayerEntity )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ItemStack getDisplayStack()
|
||||
{
|
||||
if( this.dspStack.isEmpty() )
|
||||
{
|
||||
final ItemStack dsp = super.getDisplayStack();
|
||||
if( !dsp.isEmpty() )
|
||||
{
|
||||
this.dspStack = dsp.copy();
|
||||
}
|
||||
}
|
||||
return this.dspStack;
|
||||
}
|
||||
@Override
|
||||
public ItemStack getDisplayStack() {
|
||||
if (this.dspStack.isEmpty()) {
|
||||
final ItemStack dsp = super.getDisplayStack();
|
||||
if (!dsp.isEmpty()) {
|
||||
this.dspStack = dsp.copy();
|
||||
}
|
||||
}
|
||||
return this.dspStack;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user