Struct PlacementInfo
pub struct PlacementInfo {
pub cells: Vec<Option<Ingredient>>,
pub shape: Option<[u16; 2]>,
}Expand description
Vanilla’s Recipe#placementInfo: ingredient cells, distinct from display
pictures. Supplied by the same recipe-type-owned provider as its displays.
NeoForge public documentation names no separate registration event.
Fields§
§cells: Vec<Option<Ingredient>>Ordered recipe cells. None is a shaped hole, never a wildcard ingredient.
An empty list is NOT_PLACEABLE. The load boundary validates every
ingredient against the actual item registry before making it available.
shape: Option<[u16; 2]>Shaped width and height, or None for consecutive inputs. For named
station roles, cells follow input order: furnace/stonecutter input;
smithing template, base, addition. Fuel is never an input here.
Implementations§
§impl PlacementInfo
impl PlacementInfo
pub const NOT_PLACEABLE: PlacementInfo
pub const NOT_PLACEABLE: PlacementInfo
The recipe cannot be represented as item placement requirements. Such recipes may still display, but placement requests refuse without mutation.
Trait Implementations§
§impl Clone for PlacementInfo
impl Clone for PlacementInfo
§fn clone(&self) -> PlacementInfo
fn clone(&self) -> PlacementInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more