pick 97420a31d The big reformat of 2020

This commit is contained in:
yueh
2020-06-16 21:41:28 +02:00
parent 5304b3febe
commit 5225ea426b
2252 changed files with 95466 additions and 118582 deletions
@@ -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;
}
}