CraftingTable class
The CraftingTable is the core widget to instantiate a custom crafter.
Constructors
-
CraftingTable({String name = 'craft', int id = 0, List<
Recipe> ? recipes, String? recipeSource, String? recipeResultSource, Item? placeholder, Item? blockModel, TextComponent? displayName, bool giveCommandFunction = false, Widget? onDestroy, Item? guiModel, List<Widget> ? main, bool useBarrel = false, bool invisibleHitbox = true}) - The CraftingTable is the core widget to instantiate a custom crafter. It generates a pack(with a custom namespace) itself as well as the needed functions depending on the inputs. The Crafter is a modified chest with an armorstand inside to implement the logic.
Properties
- blockModel ↔ Item?
-
getter/setter pair
- displayName ↔ TextComponent?
-
getter/setter pair
- giveCommandFunction ↔ bool
-
getter/setter pair
- guiModel ↔ Item?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int
-
getter/setter pair
- invisibleHitbox ↔ bool
-
getter/setter pair
-
main
↔ List<
Widget> ? -
getter/setter pair
- name ↔ String
-
getter/setter pair
- onDestroy ↔ Widget?
-
getter/setter pair
- placeholder ↔ Item?
-
getter/setter pair
- recipeResultSource ↔ String?
-
getter/setter pair
-
recipes
↔ List<
Recipe> ? -
getter/setter pair
- recipeSource ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- useBarrel ↔ bool
-
getter/setter pair
Methods
-
generate(
Context context) → Widget -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → dynamic -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited