Class CraftView
-
- All Implemented Interfaces:
public final class CraftViewA view of crafting gui.
-
-
Field Summary
Fields Modifier and Type Field Description private final Map<CoordinateComponent, ItemStack>materials
-
Constructor Summary
Constructors Constructor Description CraftView(Map<CoordinateComponent, ItemStack> materials)
-
Method Summary
Modifier and Type Method Description final Map<CoordinateComponent, ItemStack>getMaterials()final CraftViewgetDecremented(Boolean shiftUsed, CRecipe recipe, MappedRelation relations)Returns a decremented view what calculated by specified arguments. final CraftViewclone()Returns a cloned view final Unitdrop(World world, Location location)Drops all contained items. final CraftViewexcludeAir()Returns a view what is excluded empty slot -
-
Constructor Detail
-
CraftView
CraftView(Map<CoordinateComponent, ItemStack> materials)
- Parameters:
materials- A mapping of materials what were placed by a player.
-
-
Method Detail
-
getMaterials
final Map<CoordinateComponent, ItemStack> getMaterials()
-
getDecremented
final CraftView getDecremented(Boolean shiftUsed, CRecipe recipe, MappedRelation relations)
Returns a decremented view what calculated by specified arguments.
- Parameters:
shiftUsed- Consider to using Shift key or notrecipe- Reciperelations- Relations withthis.materialsandrecipe.items- Returns:
CraftView Decremented view
- Since:
5.0.16
-
drop
final Unit drop(World world, Location location)
Drops all contained items.
- Parameters:
world- dropped worldlocation- dropped location- Since:
5.0.13
-
excludeAir
final CraftView excludeAir()
Returns a view what is excluded empty slot
- Returns:
CraftView Result View
- Since:
5.0.17
-
-
-
-