Class GameTestsIngredientPositionsIndex
java.lang.Object
org.cyclops.integrateddynamics.gametest.GameTestsIngredientPositionsIndex
Game tests for
IngredientPositionsIndex.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexpectedPositions(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T, M> component, List<org.apache.commons.lang3.tuple.Pair<T, PrioritizedPartPos>> contents, T instance, M matchCondition) Determine the expected positions for the given query by naively scanning over all indexed instances.protected static net.minecraft.world.item.ItemStackprotected static PartPospos(net.minecraft.gametest.framework.GameTestHelper helper, int x) voidtestPositionLookups(net.minecraft.gametest.framework.GameTestHelper helper) voidtestPositionLookupsMatchAllConditions(net.minecraft.gametest.framework.GameTestHelper helper) voidtestPositionLookupsPriorities(net.minecraft.gametest.framework.GameTestHelper helper) voidtestPositionLookupsSingleCategoryComponent(net.minecraft.gametest.framework.GameTestHelper helper) voidtestPositionRemoval(net.minecraft.gametest.framework.GameTestHelper helper)
-
Field Details
-
TEMPLATE_EMPTY
- See Also:
-
-
Constructor Details
-
GameTestsIngredientPositionsIndex
public GameTestsIngredientPositionsIndex()
-
-
Method Details
-
pos
-
named
protected static net.minecraft.world.item.ItemStack named(net.minecraft.world.item.ItemStack itemStack, String name) -
list
-
set
-
expectedPositions
protected static <T,M> Set<PartPos> expectedPositions(org.cyclops.commoncapabilities.api.ingredient.IngredientComponent<T, M> component, List<org.apache.commons.lang3.tuple.Pair<T, PrioritizedPartPos>> contents, T instance, M matchCondition) Determine the expected positions for the given query by naively scanning over all indexed instances. -
testPositionLookups
public void testPositionLookups(net.minecraft.gametest.framework.GameTestHelper helper) -
testPositionLookupsMatchAllConditions
public void testPositionLookupsMatchAllConditions(net.minecraft.gametest.framework.GameTestHelper helper) -
testPositionLookupsPriorities
public void testPositionLookupsPriorities(net.minecraft.gametest.framework.GameTestHelper helper) -
testPositionRemoval
public void testPositionRemoval(net.minecraft.gametest.framework.GameTestHelper helper) -
testPositionLookupsSingleCategoryComponent
public void testPositionLookupsSingleCategoryComponent(net.minecraft.gametest.framework.GameTestHelper helper)
-