Class IStructureElement.BlocksToPlace
- java.lang.Object
-
- com.gtnewhorizon.structurelib.structure.IStructureElement.BlocksToPlace
-
- Enclosing interface:
- IStructureElement<T>
public static final class IStructureElement.BlocksToPlace extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static IStructureElement.BlocksToPlaceerrored
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IStructureElement.BlocksToPlacecreate(java.lang.Iterable<ItemStack> stacks)static IStructureElement.BlocksToPlacecreate(java.util.function.Predicate<ItemStack> predicate)static IStructureElement.BlocksToPlacecreate(Block block, int meta)static IStructureElement.BlocksToPlacecreate(Item item, int meta)static IStructureElement.BlocksToPlacecreate(ItemStack itemStack)static IStructureElement.BlocksToPlacecreate(ItemStack... stacks)static IStructureElement.BlocksToPlacecreateEmpty()java.util.function.Predicate<ItemStack>getPredicate()Get the blocks to place filter.java.lang.Iterable<ItemStack>getStacks()Get the ItemStacks that this one is known to accept.
-
-
-
Field Detail
-
errored
public static final IStructureElement.BlocksToPlace errored
-
-
Method Detail
-
createEmpty
public static IStructureElement.BlocksToPlace createEmpty()
-
create
public static IStructureElement.BlocksToPlace create(ItemStack... stacks)
-
create
public static IStructureElement.BlocksToPlace create(java.lang.Iterable<ItemStack> stacks)
-
create
public static IStructureElement.BlocksToPlace create(Block block, int meta)
-
create
public static IStructureElement.BlocksToPlace create(Item item, int meta)
-
create
public static IStructureElement.BlocksToPlace create(ItemStack itemStack)
-
create
public static IStructureElement.BlocksToPlace create(java.util.function.Predicate<ItemStack> predicate)
-
getPredicate
@Nonnull public java.util.function.Predicate<ItemStack> getPredicate()
Get the blocks to place filter. This is usually slower as it requires walking through inventories one by one.Suitable for use with
IItemSource.takeOne(Predicate, boolean)- Returns:
- a predicate. never null.
-
getStacks
@Nullable public java.lang.Iterable<ItemStack> getStacks()
Get the ItemStacks that this one is known to accept. Can be null if this info is not available at the time this instance is constructed.Suitable for use with
IItemSource.takeOne(ItemStack, boolean).This should be equivalent to the predicate returned from
getPredicate()
-
-