Commit Graph

861 Commits

Author SHA1 Message Date
gruetzkopf
a4b637f62c Merge remote-tracking branch 'plabs/feature/real-world-network' into gruetzkopf/1.18.2-bringup 2022-05-24 17:17:42 +02:00
gruetzkopf
546af612fc Merge remote-tracking branch 'plabs/feature/eth-switch' into gruetzkopf/1.18.2-bringup 2022-05-24 17:15:30 +02:00
Florian Nücke
6a003fc64c Fixed tests. 2022-04-07 19:33:12 +02:00
Florian Nücke
78ae75a557 Update to MC 1.18.2. 2022-04-07 19:19:24 +02:00
IpsumCapra
a81a6b62c3 Fixed getRedstoneInput function on redstone interface card and block. 2022-04-06 18:49:57 +02:00
Kilobyte22
d38e683abb feat(block/switch): Add support for displaying link state 2022-03-06 22:28:28 +01:00
Kilobyte22
84d59082d2 The network switch block now actually has the correct block entity 2022-02-28 01:22:16 +01:00
Kilobyte22
d12bc2df69 Add configurability to vxlan block 2022-02-28 01:16:25 +01:00
Florian Nücke
abc7a2300a Remove upper limits for device sizes. Needs op rights anyway, so kinda pointless. 2022-02-27 17:52:17 +01:00
Florian Nücke
75e50ffe22 Try to pick a nice name for object devices if none is explicitly provided. 2022-02-27 17:52:17 +01:00
Sangar
f8608c64da Merge pull request #139 from allie-signet/configurable-sound-cooldown
Make sound card cooldown configurable.
2022-02-27 17:21:55 +01:00
Allie Signet
3c8e8be6dc config field changes for soundcard 2022-02-27 13:20:03 -03:00
Allie Signet
d9da812258 make sound card cooldown configurable 2022-02-25 20:38:52 -03:00
Allie Signet
d5e4315770 add volume & pitch to sound card 2022-02-25 19:53:07 -03:00
Kilobyte22
55bd407aef Initialize item block states for Switch Block 2022-02-18 00:43:22 +01:00
Kilobyte22
8dc69011aa Add switch to item list 2022-02-18 00:20:31 +01:00
gruetzkopf
4c3ef28236 This should work 2022-02-16 01:41:22 +01:00
Nadja Reitzenstein
9f68c9c320 More debugging! 2022-02-16 01:41:22 +01:00
Nadja Reitzenstein
646a66f895 Debugging 2022-02-16 01:41:22 +01:00
Nadja Reitzenstein
5eead9a1ee Prototype commit #3 2022-02-16 01:41:22 +01:00
Nadja Reitzenstein
6b9b51f6c1 Prototype commit 2 2022-02-16 01:41:22 +01:00
Nadja Reitzenstein
40cfc418d6 First prototype vxlan hub 2022-02-16 01:41:14 +01:00
Kilobyte22
7eb0d9efce Add initial work on the NetworkPortalBlock 2022-02-16 01:40:30 +01:00
Kilobyte22
10ab82095f Re-Implement the switch for 1.18 2022-02-16 01:37:41 +01:00
Florian Nücke
14210c538f Add support for custom block devices via data packs. 2022-02-14 00:04:43 +01:00
Florian Nücke
e5256f3ada Accept long for size formatting. 2022-02-14 00:03:49 +01:00
Florian Nücke
777b9f529d Change label of default hard drive and firmware to "Sedna Linux" to be less generic. 2022-02-13 23:59:02 +01:00
Florian Nücke
8fcaa81037 Add matching getter to firmware registry. 2022-02-13 23:58:25 +01:00
Florian Nücke
85c0452372 Also list all extra custom hard drives in the creative tab. 2022-02-13 23:54:00 +01:00
Florian Nücke
6148eff484 Return empty stack if data is invalid, instead of returning default one. 2022-02-13 23:38:42 +01:00
Florian Nücke
df60bd8f50 Ditto for firmwares. 2022-02-13 23:38:32 +01:00
Florian Nücke
b958aeefd8 Renamed class, abstract away registry. 2022-02-13 23:35:52 +01:00
Florian Nücke
db0675370b Small rename to match mappings. 2022-02-13 23:34:16 +01:00
Florian Nücke
3685c195fd Renamed internal item names for buildroot hard disk and flash to be more generic. 2022-02-13 22:03:38 +01:00
Florian Nücke
516bd6ca73 Add config for default ethernet frame TLL. Closes #101. 2022-02-13 21:11:23 +01:00
Florian Nücke
f0a06c8929 Send raw error message to client and add extra method to resolve error message.
Avoids powered-off computers showing "bus incomplete" after load.
2022-02-13 19:11:45 +01:00
Florian Nücke
a92ac07548 Pass a scan reason for scheduling bus scan, so we can immediately retry when errors may be fixed, but avoid ping-pong while errors persist. 2022-02-13 18:28:00 +01:00
Florian Nücke
b92152c593 Fix devices in unloaded chunks not being removed from element device list. 2022-02-13 17:36:16 +01:00
Florian Nücke
356cf1f5c0 Always store data, even if empty, to know device existed. 2022-02-13 17:26:06 +01:00
Florian Nücke
782217aa23 Another returned set to readonly and fix potential infinite recursion. 2022-02-13 17:12:43 +01:00
Florian Nücke
5f15146676 Handle edge case where devices get removed while element is unloaded, so we call dispose on the provider in that case.
Since dispose is only called through element now, delay this to after the device update, so adapters can call unmount first.
Also, assign a new ID to groups when they structurally change.
2022-02-13 17:01:36 +01:00
Florian Nücke
c0b35cd4f8 Trigger device update in controller when some devices may be unloaded now. 2022-02-13 16:57:34 +01:00
Florian Nücke
f98d457774 Paranoia: when removing cable/interface, ensure previously known devices are disposed via controller, even if they're currently in unloaded chunks. 2022-02-13 16:56:08 +01:00
Florian Nücke
3fdf49f3af Make getter return readonly collection. 2022-02-13 16:54:49 +01:00
Florian Nücke
fad198e9d1 Split up controller scan logic into methods for readability, reduced number of add/removeController calls.
Also, extra paranoia, checking previously known elements for other controllers, too.
2022-02-13 16:54:31 +01:00
Florian Nücke
5f284bab15 Avoid controller scan scheduling ping-pong. 2022-02-13 16:42:22 +01:00
Florian Nücke
3615fd1f0c Have adapters only unmount, not dispose devices. 2022-02-13 16:13:32 +01:00
Florian Nücke
61323fae80 Missed two isRemoved() -> isInvalid() conversions. 2022-02-13 16:12:47 +01:00
Florian Nücke
352af7d37a Move dispose method to parent interface. 2022-02-13 16:12:32 +01:00
Florian Nücke
d84a674cb4 Renamed event for clarity, inlined public methods only used in event, anyway. 2022-02-13 16:09:47 +01:00