Class NetworkRoot
java.lang.Object
io.github.sefiraat.networks.network.NetworkNode
io.github.sefiraat.networks.network.NetworkRoot
-
Field Summary
Fields inherited from class io.github.sefiraat.networks.network.NetworkNode
childrenNodes, nodePosition, nodeType, parent, power, root, VALID_FACES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddItemStack(ItemStack incoming) voidaddRootPower(long power) booleancontains(ItemRequest request) booleancontains(ItemRequest[] requests) Set<me.mrCookieSlime.Slimefun.api.inventory.BlockMenu>getCells()Set<me.mrCookieSlime.Slimefun.api.inventory.BlockMenu>Set<me.mrCookieSlime.Slimefun.api.inventory.BlockMenu>getGrids()getItemStack(ItemRequest request) Checks the Network's exposed items and removes items matching the request up to the amount requested.intintlongbooleanbooleanvoidregisterNode(Location location, NodeType type) voidremoveRootPower(long power) longvoidsetDisplayParticles(boolean displayParticles) voidsetOverburdened(boolean overburdened) voidsetRootPower(long power) Methods inherited from class io.github.sefiraat.networks.network.NetworkNode
addAllChildren, addChild, getChildrenNodes, getNodePosition, getNodeType, getParent, getPower, getRoot, networkContains, networkContains
-
Constructor Details
-
NetworkRoot
-
-
Method Details
-
registerNode
-
getNodeLocations
-
getMaxNodes
public int getMaxNodes() -
getNodeCount
public int getNodeCount() -
isOverburdened
public boolean isOverburdened() -
setOverburdened
public void setOverburdened(boolean overburdened) -
getBridges
-
getMonitors
-
getImporters
-
getExporters
-
getGrids
-
getCells
-
getWipers
-
getGrabbers
-
getPushers
-
getPurgers
-
getCrafters
-
getPowerNodes
-
getPowerDisplays
-
getEncoders
-
getAllNetworkItems
-
getBarrels
-
getCellMenus
-
getCrafterOutputs
-
getGreedyBlocks
-
getItemStack
Checks the Network's exposed items and removes items matching the request up to the amount requested. Items are withdrawn in this order:Cells Withholding AutoCrafters Deep Storages (Barrels)
- Parameters:
request- TheItemRequestbeing requested from the Network- Returns:
- The
ItemStackmatching the request with as many as could be found. Null if none.
-
contains
-
contains
-
addItemStack
-
retrieveBlockCharge
public long retrieveBlockCharge()- Overrides:
retrieveBlockChargein classNetworkNode
-
getRootPower
public long getRootPower() -
setRootPower
public void setRootPower(long power) -
addRootPower
public void addRootPower(long power) -
removeRootPower
public void removeRootPower(long power) -
isDisplayParticles
public boolean isDisplayParticles() -
setDisplayParticles
public void setDisplayParticles(boolean displayParticles)
-