Class GameTestsVariableCopy

java.lang.Object
org.cyclops.integrateddynamics.gametest.GameTestsVariableCopy

public class GameTestsVariableCopy extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.core.BlockPos
     
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    collectVariableCards(List<net.minecraft.world.item.ItemStack> cards, net.minecraft.world.item.ItemStack itemStack)
     
    protected List<net.minecraft.world.item.ItemStack>
    craftVariableCopy(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.item.ItemStack withData, net.minecraft.world.item.ItemStack withoutData, net.minecraft.world.inventory.ContainerInput clickType)
    Craft the given variable cards into a copy, as a player would in a crafting table.
    protected void
    testCopyVariableKeepsLabel(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.inventory.ContainerInput clickType)
     
    void
    testCopyVariableKeepsLabelOnBothCards(net.minecraft.gametest.framework.GameTestHelper helper)
     
    void
    testCopyVariableKeepsLabelOnBothCardsQuickMove(net.minecraft.gametest.framework.GameTestHelper helper)
    Shift-clicking the result crafts until the result changes, so the copy must not be left behind in a state where another recipe can consume it.
    void
    testCopyVariableMultipleTimes(net.minecraft.gametest.framework.GameTestHelper helper)
    Shift-clicking must keep crafting copies for as long as there are blank cards to copy onto.
    void
    testCopyVariableWithoutLabel(net.minecraft.gametest.framework.GameTestHelper helper)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TEMPLATE_EMPTY

      public static final String TEMPLATE_EMPTY
      See Also:
    • POS

      public static final net.minecraft.core.BlockPos POS
  • Constructor Details

    • GameTestsVariableCopy

      public GameTestsVariableCopy()
  • Method Details

    • testCopyVariableKeepsLabelOnBothCards

      public void testCopyVariableKeepsLabelOnBothCards(net.minecraft.gametest.framework.GameTestHelper helper)
    • testCopyVariableKeepsLabelOnBothCardsQuickMove

      public void testCopyVariableKeepsLabelOnBothCardsQuickMove(net.minecraft.gametest.framework.GameTestHelper helper)
      Shift-clicking the result crafts until the result changes, so the copy must not be left behind in a state where another recipe can consume it.
    • testCopyVariableKeepsLabel

      protected void testCopyVariableKeepsLabel(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.inventory.ContainerInput clickType)
    • testCopyVariableMultipleTimes

      public void testCopyVariableMultipleTimes(net.minecraft.gametest.framework.GameTestHelper helper)
      Shift-clicking must keep crafting copies for as long as there are blank cards to copy onto.
    • testCopyVariableWithoutLabel

      public void testCopyVariableWithoutLabel(net.minecraft.gametest.framework.GameTestHelper helper)
    • craftVariableCopy

      protected List<net.minecraft.world.item.ItemStack> craftVariableCopy(net.minecraft.gametest.framework.GameTestHelper helper, net.minecraft.world.item.ItemStack withData, net.minecraft.world.item.ItemStack withoutData, net.minecraft.world.inventory.ContainerInput clickType)
      Craft the given variable cards into a copy, as a player would in a crafting table.
      Parameters:
      helper - The game test helper.
      withData - A variable card holding a variable.
      withoutData - A blank variable card.
      clickType - How the player takes the result out of the result slot.
      Returns:
      All variable cards the player holds afterwards, including the ones left in the crafting grid.
    • collectVariableCards

      protected void collectVariableCards(List<net.minecraft.world.item.ItemStack> cards, net.minecraft.world.item.ItemStack itemStack)