startClient works again
This commit is contained in:
@@ -392,45 +392,45 @@ public abstract class AEBaseGui extends ContainerScreen<AEBaseContainer>
|
||||
return;
|
||||
}
|
||||
|
||||
if( slot instanceof SlotPatternTerm )
|
||||
{
|
||||
if( mouseButton == 6 )
|
||||
{
|
||||
return; // prevent weird double clicks..
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
NetworkHandler.instance().sendToServer( ( (SlotPatternTerm) slot ).getRequest( hasShiftDown() ) );
|
||||
}
|
||||
catch( final IOException e )
|
||||
{
|
||||
AELog.debug( e );
|
||||
}
|
||||
}
|
||||
else if( slot instanceof SlotCraftingTerm )
|
||||
{
|
||||
if( mouseButton == 6 )
|
||||
{
|
||||
return; // prevent weird double clicks..
|
||||
}
|
||||
|
||||
InventoryAction action = null;
|
||||
if( hasShiftDown() )
|
||||
{
|
||||
action = InventoryAction.CRAFT_SHIFT;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Craft stack on right-click, craft single on left-click
|
||||
action = ( mouseButton == 1 ) ? InventoryAction.CRAFT_STACK : InventoryAction.CRAFT_ITEM;
|
||||
}
|
||||
|
||||
final PacketInventoryAction p = new PacketInventoryAction( action, slotIdx, 0 );
|
||||
NetworkHandler.instance().sendToServer( p );
|
||||
|
||||
return;
|
||||
}
|
||||
// FIXME if( slot instanceof SlotPatternTerm )
|
||||
// FIXME {
|
||||
// FIXME if( mouseButton == 6 )
|
||||
// FIXME {
|
||||
// FIXME return; // prevent weird double clicks..
|
||||
// FIXME }
|
||||
// FIXME
|
||||
// FIXME try
|
||||
// FIXME {
|
||||
// FIXME NetworkHandler.instance().sendToServer( ( (SlotPatternTerm) slot ).getRequest( hasShiftDown() ) );
|
||||
// FIXME }
|
||||
// FIXME catch( final IOException e )
|
||||
// FIXME {
|
||||
// FIXME AELog.debug( e );
|
||||
// FIXME }
|
||||
// FIXME }
|
||||
// FIXME else if( slot instanceof SlotCraftingTerm )
|
||||
// FIXME {
|
||||
// FIXME if( mouseButton == 6 )
|
||||
// FIXME {
|
||||
// FIXME return; // prevent weird double clicks..
|
||||
// FIXME }
|
||||
// FIXME
|
||||
// FIXME InventoryAction action = null;
|
||||
// FIXME if( hasShiftDown() )
|
||||
// FIXME {
|
||||
// FIXME action = InventoryAction.CRAFT_SHIFT;
|
||||
// FIXME }
|
||||
// FIXME else
|
||||
// FIXME {
|
||||
// FIXME // Craft stack on right-click, craft single on left-click
|
||||
// FIXME action = ( mouseButton == 1 ) ? InventoryAction.CRAFT_STACK : InventoryAction.CRAFT_ITEM;
|
||||
// FIXME }
|
||||
// FIXME
|
||||
// FIXME final PacketInventoryAction p = new PacketInventoryAction( action, slotIdx, 0 );
|
||||
// FIXME NetworkHandler.instance().sendToServer( p );
|
||||
// FIXME
|
||||
// FIXME return;
|
||||
// FIXME }
|
||||
|
||||
if( InputMappings.isKeyDown(Minecraft.getInstance().getMainWindow().getHandle(), GLFW.GLFW_KEY_SPACE) )
|
||||
{
|
||||
|
||||
@@ -3,14 +3,10 @@ package appeng.client.gui;
|
||||
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.inventory.container.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraftforge.api.distmarker.Dist;
|
||||
import net.minecraftforge.api.distmarker.OnlyIn;
|
||||
import net.minecraftforge.items.SlotItemHandler;
|
||||
@@ -52,12 +48,6 @@ class Size1Slot extends SlotItemHandler
|
||||
return this.delegate.getHasStack();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isHere( IInventory inv, int slotIn )
|
||||
{
|
||||
return this.delegate.isHere( inv, slotIn );
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSlotStackLimit()
|
||||
{
|
||||
@@ -70,14 +60,6 @@ class Size1Slot extends SlotItemHandler
|
||||
return this.delegate.getItemStackLimit( stack );
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
@OnlyIn( Dist.CLIENT )
|
||||
public String getSlotTexture()
|
||||
{
|
||||
return this.delegate.getSlotTexture();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canTakeStack( PlayerEntity playerIn )
|
||||
{
|
||||
@@ -91,20 +73,6 @@ class Size1Slot extends SlotItemHandler
|
||||
return this.delegate.isEnabled();
|
||||
}
|
||||
|
||||
@Override
|
||||
@OnlyIn( Dist.CLIENT )
|
||||
public ResourceLocation getBackgroundLocation()
|
||||
{
|
||||
return this.delegate.getBackgroundLocation();
|
||||
}
|
||||
|
||||
@Override
|
||||
@OnlyIn( Dist.CLIENT )
|
||||
public TextureAtlasSprite getBackgroundSprite()
|
||||
{
|
||||
return this.delegate.getBackgroundSprite();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSlotIndex()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user