forked from RS485/LogisticsPipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementing Module system for PipeBlockRequestTable, add a small con…
…struction on SimpleStackInventory (Commit for: RS485#1679)
- Loading branch information
1 parent
6ff8fd8
commit 91516c3
Showing
4 changed files
with
169 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package logisticspipes.modules; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
|
||
import logisticspipes.utils.item.ItemIdentifierInventory; | ||
import logisticspipes.utils.item.SimpleStackInventory; | ||
import network.rs485.logisticspipes.property.IntegerProperty; | ||
import network.rs485.logisticspipes.property.InventoryProperty; | ||
import network.rs485.logisticspipes.property.SimpleInventoryProperty; | ||
|
||
public class ModuleRequesterTable extends LogisticsModule { | ||
public final SimpleInventoryProperty diskInv = new SimpleInventoryProperty(new SimpleStackInventory(1, "Disk Slot", 1), "diskInv"); | ||
public final SimpleInventoryProperty inv = new SimpleInventoryProperty(new SimpleStackInventory(27, "Crafting Resources", 64), "inv"); | ||
public final InventoryProperty matrix = new InventoryProperty(new ItemIdentifierInventory(9, "Crafting Matrix", 1), "matrix"); | ||
public final SimpleInventoryProperty toSortInv = new SimpleInventoryProperty(new SimpleStackInventory(1, "Sorting Slot", 64), "toSortInv"); | ||
public final IntegerProperty rotation = new IntegerProperty(0, "blockRotation"); | ||
|
||
@NotNull | ||
@Override | ||
public String getLPName() { | ||
throw new RuntimeException("Cannot get LP name for " + this); | ||
} | ||
|
||
@Override | ||
public void tick() { | ||
|
||
} | ||
|
||
@Override | ||
public boolean hasGenericInterests() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean interestedInAttachedInventory() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean interestedInUndamagedID() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public boolean receivePassive() { | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.