Commit Graph

96 Commits

Author SHA1 Message Date
Shadowfacts e0dfefb72b
Fix ConcurrentModificationException 2021-02-14 16:03:52 -05:00
Shadowfacts 583afd3dc9
Code cleanup 2021-02-14 16:03:40 -05:00
Shadowfacts 633f9d94aa
Add Interface item model 2021-02-14 12:28:59 -05:00
Shadowfacts 6b340740ce
Fix tooltips not being drawn in Terminal 2021-02-14 12:07:19 -05:00
Shadowfacts 584d8cd04e
Add Console item 2021-02-14 12:07:05 -05:00
Shadowfacts 446a2a42c3
Draw terminal screen background 2021-02-14 11:29:52 -05:00
Shadowfacts 27713aedba
Localize names 2021-02-14 11:24:55 -05:00
Shadowfacts c8cdf425cb
Convert Terminal and Interface blocks to layer 3 2021-02-13 21:37:39 -05:00
Shadowfacts fc3716153f
Refactor DeviceBlockEntity to only have 1 interface 2021-02-13 21:28:44 -05:00
Shadowfacts e8425b80fd
Implement layer 3 networking 2021-02-13 18:24:36 -05:00
Shadowfacts 26134cea9d
Send remainder of partially-inserted stacks back to source 2021-02-11 23:11:50 -05:00
Shadowfacts d61ed8b7cc
Terminal: Fix extraction having different latency than insertion 2021-02-11 22:32:42 -05:00
Shadowfacts 1c3e358f2e
Terminal: Shift-click transferring, draw slot modes 2021-02-11 00:10:24 -05:00
Shadowfacts dedfcae79b
Terminal: Add basic insertion into inventories 2021-02-10 22:40:01 -05:00
Shadowfacts b1c37595ab
Update to 1.16.5 2021-02-10 22:39:45 -05:00
Shadowfacts 8a20837f11
Terminal: Define separate mode for buffer inventory slots 2019-10-30 14:55:29 -04:00
Shadowfacts 14125143dc
Terminal: Add right-clicking to request half a stack 2019-10-30 14:55:04 -04:00
Shadowfacts 37692aac7d
Terminal: Merge stacks into buffer where possible 2019-10-30 14:27:18 -04:00
Shadowfacts 2ec294d427
Terminal: Fix multiple stacks being extracted on a single shift-click 2019-10-30 14:09:47 -04:00
Shadowfacts 654baa81a1
Switch: Implement switching capacity 2019-10-30 14:05:53 -04:00
Shadowfacts 98134825a6
Send packets immediately instead of on the next tick 2019-10-30 13:59:28 -04:00
Shadowfacts 2a9fc29cdd
Fix crash loading terminal from disk 2019-10-30 13:53:40 -04:00
Shadowfacts f4f4c7ff03
Terminal: Rudimentary stack extraction 2019-10-29 21:58:25 -04:00
Shadowfacts 5d62e60bb2
Terminal: sync internal buffer inventory to client 2019-10-29 21:00:15 -04:00
Shadowfacts 68e612c63c
Terminal GUI: add read only fake slot 2019-10-29 20:59:58 -04:00
Shadowfacts de81412630
Only recalculate and sync net items when a player has the terminal open 2019-10-29 17:45:58 -04:00
Shadowfacts 7bc859eaf6
Sync terminal cached item counts to client 2019-10-29 17:33:33 -04:00
Shadowfacts 64c18e9eae
Start adding terminal container and GUI 2019-10-29 15:15:27 -04:00
Shadowfacts 0c5e353525
Change terminal to read inventories instead of stacks directly
This is slightly more efficient, and removes the need for interfaces to
observe their inventories for changes (something that's not possible in
Vanilla).
2019-10-29 11:25:51 -04:00
Shadowfacts 2cc9d592b2
Only allow the network cable to connect on a specific side, add model and shape 2019-10-28 18:46:47 -04:00
Shadowfacts 45052029e9
Change Terminal to cache inventories instead of items directly 2019-10-28 17:48:10 -04:00
Shadowfacts e246736486
Add cable disconnection using the Screwdriver 2019-10-28 12:39:12 -04:00
Shadowfacts f9fd00f611
Allow cable connections on individual sides to be disabled 2019-10-28 12:38:55 -04:00
Shadowfacts 04f0ae6d41
Add screwdriver item 2019-10-28 12:37:54 -04:00
Shadowfacts c7da691ffd
Use cable connections in search instead of checking every direction 2019-10-28 12:00:17 -04:00
Shadowfacts dfccc5b2ec
Add Cable block 2019-10-28 11:53:47 -04:00
Shadowfacts a95621e3f1
Add switches 2019-10-26 23:13:26 -04:00
Shadowfacts 0908ccbb3a
Fix incorrect MAC address multicast check 2019-10-26 23:13:14 -04:00
Shadowfacts d3c1cbdb5b
Rename things 2019-10-26 22:14:19 -04:00
Shadowfacts 6e87092dde
Remove Interface right-click printing 2019-10-26 22:10:48 -04:00
Shadowfacts a8b53e1117
Explicitly specify packet destinations instead of broadcasting to all
connected sinks
2019-10-26 22:09:16 -04:00
Shadowfacts fa7c499f29
Fix Interfaces not reading inventory contents immediately on world load
This happened because the after a world load, there was no neighbor
change to trigger an inventory update.
2019-10-26 22:06:00 -04:00
Shadowfacts 19c035495c
Fix stacks of same type in different inventories not grouping 2019-10-26 21:52:41 -04:00
Shadowfacts 6fae09d410
Cleanup NetworkUtil 2019-10-26 21:52:38 -04:00
Shadowfacts 0eabbf9ec1
Rudimentary network implementation 2019-10-26 21:36:31 -04:00
Shadowfacts 7b1a82d02b
Initial commit 2019-10-26 21:35:25 -04:00