WFCNode

public class WFCNode

Constructors

Link copied to clipboard
public void WFCNode(Vector3i nodePosition, World world, WFCLattice lattice, Map<Vector3i, WFCNode> nodeMap, WFCGenerator wfcGenerator)
Creates a new WFCNode.

Properties

Link copied to clipboard
public final int magnitudeSquared
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
public void clearGenerationData()
Clears generation data for this cell.
Link copied to clipboard
public void debugPaste(Material material)
Link copied to clipboard
public Vector3i getCellLocation()
Gets a safe copy of the cell location.
Link copied to clipboard
public int getMagnitudeSquared()
Link copied to clipboard
Link copied to clipboard
Gets a map of neighboring cells in each direction.
Link copied to clipboard
public Location getRealCenterLocation()
Link copied to clipboard
public Location getRealLocation(Location startLocation)
Gets the real world location of this cell's origin point.
Link copied to clipboard
public int getValidOptionCount()
Gets the count of valid module options for this cell.
Link copied to clipboard
Gets the possible states for this node.
Link copied to clipboard
Link copied to clipboard
public void initializeNeighbors()
Link copied to clipboard
public boolean isBoundary()
Link copied to clipboard
public boolean isCollapsed()
Checks if this cell has been generated.
Link copied to clipboard
public boolean isNothing()
Link copied to clipboard
public void setModulesContainer(ModulesContainer modulesContainer)
Link copied to clipboard
public void showDebugTextDisplays()
Creates debug text displays showing cell information.
Link copied to clipboard
public void updatePossibleStates()
Updates the possible states for this node based on its adjacent nodes.