Nassim Jahnke
3aed7cb949
Fix mending translation from getting the id from the wrong class
2024-04-23 19:56:17 +02:00
Nassim Jahnke
e2f3dc7572
Limit enchantments to 0-255
2024-04-23 19:32:32 +02:00
Nassim Jahnke
9894671274
Add back default method
2024-04-23 13:47:05 +02:00
Nassim Jahnke
71ab15b331
Serialize to 1.20.3 components in conversion
...
Aside from hover events, only reading of components changed and we need the 1.20.3 hover input. Hover events are already handled by us.
2024-04-23 13:39:15 +02:00
Nassim Jahnke
34bc5b9d36
Put item name and lore through component rewriter
...
An absolute classic moment where servers are putting hover events into not hoverable item names and lore
2024-04-23 13:07:05 +02:00
Nassim Jahnke
b47446d9f7
Merge branch 'refs/heads/dev' into preview
2024-04-23 10:59:45 +02:00
EnZaXD
dcf741a2ba
Fix sound mapping lookup in 1.8->1.9 ( #3801 )
2024-04-23 10:46:40 +02:00
Nassim Jahnke
a4adef3cec
Fix attribute slot handling
2024-04-22 23:57:55 +02:00
Nassim Jahnke
f525ad98e7
Fix handling of sweeping
2024-04-22 16:24:13 +02:00
Nassim Jahnke
d3d6d4f1cd
Fixes to hover event handling, some cleanup
2024-04-22 16:05:44 +02:00
Nassim Jahnke
5069b26c2f
Reuse previously sent enforces-secure-chat value
2024-04-22 16:05:40 +02:00
FlorianMichael
079671060c
Remove items from extra-identifiers-1.20.3 file
2024-04-22 07:13:03 +02:00
Nassim Jahnke
89cd8aec1d
Merge branch 'refs/heads/dev' into preview
2024-04-21 23:47:01 +02:00
Nassim Jahnke
7ac7ea485f
Add UserConnection to component rewriters as well
2024-04-21 23:01:58 +02:00
Nassim Jahnke
5e4f25efeb
Merge branch 'refs/heads/dev' into preview
...
# Conflicts:
# common/src/main/java/com/viaversion/viaversion/protocols/protocol1_20_5to1_20_3/rewriter/BlockItemPacketRewriter1_20_5.java
# common/src/main/java/com/viaversion/viaversion/rewriter/EntityRewriter.java
# common/src/main/java/com/viaversion/viaversion/rewriter/ItemRewriter.java
2024-04-21 22:51:45 +02:00
Nassim Jahnke
a152993ffd
Add UserConnection to item rewriters
...
Already required for ViaBackwards, later required for ViaVersion as well due to synchronized registry entries in items
2024-04-21 22:39:13 +02:00
Nassim Jahnke
73daac471c
Split up version data in dump
2024-04-21 21:55:59 +02:00
Nassim Jahnke
f4e9225f85
Store item identifiers, make identifier files more compact via global table
2024-04-21 20:47:38 +02:00
EnZaXD
1ed22327f6
Replace string->component conversion in 1.8->1.9 ( #3794 )
2024-04-21 16:00:30 +02:00
EnZaXD
ce2ad7d5eb
Change default value for new ocelot setting ( #3797 )
2024-04-21 15:15:17 +02:00
FlorianMichael
d7e66260de
Add 1.20.5 nbt->component conversion base
...
Has to be implemented into ViaBackwards yet and handlers are still missing
2024-04-21 14:53:25 +02:00
FlorianMichael
dc6d581123
Update mcstructs and use new component serializer
2024-04-21 12:13:59 +02:00
FlorianMichael
bd3f1206e6
[ci skip] document 1.9 metadata in MetaIndex
2024-04-21 11:35:10 +02:00
FlorianMichael
b9e92e5c1f
Fix zombie metadata in 1.10->1.11
2024-04-21 11:24:20 +02:00
Gero
0acaed7c7a
Use correct item type for 1.20.5 particle reading
2024-04-20 23:50:24 +02:00
FlorianMichael
3055a4277d
Use toString() method in ComponentUtil
2024-04-20 22:52:40 +02:00
Gero
bcbe69d24c
Fix ITEM_NAME component to tag conversion
2024-04-20 22:44:22 +02:00
EnZaXD
33cc21d6e6
Add setting for ocelot->cat translation in 1.13.2->1.14 ( #3796 )
2024-04-20 15:17:26 +02:00
Nassim Jahnke
949b3d712e
Fix illager metadata in 1.13->1.14
2024-04-20 13:36:00 +02:00
Nassim Jahnke
216dcb2931
Remove invalid zombified piglin data
2024-04-20 12:43:08 +02:00
Nassim Jahnke
bff1536529
Fall back to keys without namespace in registry data
2024-04-20 12:06:39 +02:00
Nassim Jahnke
b221e47eb7
Add creative mode range attributes if needed
...
Add the range argument either with or without modifiers depending on the gamemode to otherwise reset them
2024-04-19 21:35:41 +02:00
EnZaXD
fb434a79bd
Use correct deserialization method in SerializerVersion#toComponent ( #3795 )
...
MCStructs has multiple methods for parsing jsons depending on the version, we should use them correctly in our wrapper to support all possible cases of components.
2024-04-19 17:05:07 +02:00
Nassim Jahnke
1be0605f51
Eat remaining particle data in spawn particle
2024-04-19 17:02:08 +02:00
Gero
e08c263ced
Add missing dust_color_transition data remapping (changed in 24w03a)
2024-04-19 11:02:11 +02:00
Nassim Jahnke
1bb85b11e9
Merge branch 'refs/heads/dev' into preview
2024-04-19 10:11:05 +02:00
AJ Ferguson
128e191132
Fix 1.15->1.16 item attribute uuid ( #3793 )
2024-04-19 10:09:17 +02:00
Nassim Jahnke
3520f99d5a
Remove empty items from various block entities
2024-04-19 09:56:24 +02:00
RaphiMC
7825a1e460
Handle show_entity type field
2024-04-18 23:11:19 +02:00
RK_01
bfde4b953c
Fix 1.11->1.12 show_achievement rewriter ( #3792 )
2024-04-18 20:45:19 +02:00
Nassim Jahnke
57b37457d6
Add spit damage type
...
The client depends on it
2024-04-18 20:12:38 +02:00
Nassim Jahnke
f7aa1a516e
Fill wolf_food item tag
2024-04-18 18:58:29 +02:00
Nassim Jahnke
b1468ac6d0
Update particle codec format
...
Was changed in 1.20.5-pre1
2024-04-18 18:36:22 +02:00
Nassim Jahnke
27b5fdb4ff
Merge branch 'refs/heads/dev' into preview
...
# Conflicts:
# common/src/main/java/com/viaversion/viaversion/protocols/protocol1_13_1to1_13/metadata/MetadataRewriter1_13_1To1_13.java
# common/src/main/java/com/viaversion/viaversion/protocols/protocol1_14to1_13_2/metadata/MetadataRewriter1_14To1_13_2.java
# common/src/main/java/com/viaversion/viaversion/protocols/protocol1_15to1_14_4/metadata/MetadataRewriter1_15To1_14_4.java
# common/src/main/java/com/viaversion/viaversion/protocols/protocol1_16_2to1_16_1/metadata/MetadataRewriter1_16_2To1_16_1.java
# common/src/main/java/com/viaversion/viaversion/protocols/protocol1_16to1_15_2/metadata/MetadataRewriter1_16To1_15_2.java
# common/src/main/java/com/viaversion/viaversion/protocols/protocol1_17to1_16_4/packets/EntityPackets.java
# common/src/main/java/com/viaversion/viaversion/protocols/protocol1_18to1_17_1/packets/EntityPackets.java
# common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19_3to1_19_1/packets/EntityPackets.java
# common/src/main/java/com/viaversion/viaversion/protocols/protocol1_19to1_18_2/packets/EntityPackets.java
2024-04-18 16:17:05 +02:00
Nassim Jahnke
a99273db2e
Always call onMappingDataLoaded in TagRewriter
...
In case they are needed in the future, so that we don't also have to check whether the different methods are actually called
2024-04-18 16:12:57 +02:00
Nassim Jahnke
64f911ed4a
1.20.5-rc1
2024-04-18 15:47:44 +02:00
EnZaXD
4302dd61aa
Remove Protocol1_9To1_8#FIX_JSON usage in 1.11->1.12 ( #3791 )
2024-04-18 15:26:13 +02:00
EnZaXD
98c5d38d0c
Push book contents through component conversion in 1.8->1.9 ( #3790 )
2024-04-18 15:25:48 +02:00
FlorianMichael
033d5ae49a
Handle removed item conversion in component rewriter
2024-04-17 22:39:08 +02:00
EnZaXD
8fe0681778
Replace incoming/outgoing usages with client/server bound ( #3787 )
2024-04-16 20:59:48 +02:00
EnZaXD
ea5cf3e594
Add IdAndData util and replace conversions ( #3786 )
2024-04-16 15:55:55 +02:00
Nassim Jahnke
31ccd2ab9b
1.20.5-pre2
2024-04-15 17:14:23 +02:00
FlorianMichael
2be190d152
Some consistency cleanup
2024-04-13 22:32:56 +02:00
FlorianMichael
4e25549682
Handle legacy item hover events
...
Co-authored-by: RaphiMC <50594595+raphimc@users.noreply.github.com>
2024-04-13 21:01:34 +02:00
FlorianMichael
287678c12a
[ci skip] Add comments for conversion direction to classes
2024-04-13 20:58:38 +02:00
FlorianMichael
970986bc59
Add component rewriter for 1.20.3->1.20.5
2024-04-13 20:56:54 +02:00
RK_01
2586788bf6
Fix config read/write error when parent file is null ( #3783 )
2024-04-10 17:35:25 +02:00
EnZaXD
0c2c8400ae
Make handling of optional block metadata more explicit in <1.19.4 ( #3782 )
2024-04-10 17:34:56 +02:00
Nassim Jahnke
ba4404fad6
1.20.5-pre1
2024-04-10 17:33:10 +02:00
RK_01
6f53c069ea
Fix 1.12 -> 1.13 held enderman block translation ( #3781 )
2024-04-10 10:43:48 +02:00
Nassim Jahnke
99f29e2597
Prepare proper banner id tracking, small other fixes
2024-04-09 12:40:16 +02:00
EnZaXD
7932b79080
Explain backup tags ( #1 )
2024-04-08 16:59:33 +02:00
FlorianMichael
4b780b92ee
Fix armor trim conversion
2024-04-08 15:05:01 +02:00
Nassim Jahnke
d04aaeb926
Handle color in area effect cloud
2024-04-08 14:21:11 +02:00
FlorianMichael
9f1ee27afc
Add missing checks in item id conversions
2024-04-08 13:36:58 +02:00
Nassim Jahnke
5f685884ff
Handle entity effect particle in spawn particle
2024-04-08 13:33:59 +02:00
FlorianMichael
ba2e50cc88
Fix StructuredDataConverter#removeItemBackupTag
2024-04-08 13:31:13 +02:00
FlorianMichael
7b28683b6a
Add remaining data backup handling
2024-04-08 13:18:49 +02:00
Nassim Jahnke
510747a7cd
Replace empty items in recipes
2024-04-08 10:53:39 +02:00
Nassim Jahnke
8c5752bb4c
Update unsupported java version warning
2024-04-07 22:34:20 +02:00
Nassim Jahnke
33e2a1fc13
Send unsigned messages if possible
...
The server cannot guarantee that the last seen values are correct, so in order to avoid kicks from invalid signatures, we will just strip them if possible.
2024-04-07 22:05:14 +02:00
Nassim Jahnke
83223c1520
Also handle ack in serverbound chat message
2024-04-07 20:35:07 +02:00
FlorianMichael
935077222e
Simplify code
2024-04-07 20:08:16 +02:00
FlorianMichael
8961660846
Fix chat command handling
2024-04-07 19:43:29 +02:00
Nassim Jahnke
1fe23e4aeb
Fix trade list handling
2024-04-07 13:36:02 +02:00
Nassim Jahnke
06394c1f74
Apply network limits
2024-04-07 11:41:57 +02:00
Nassim Jahnke
68c2af2795
Replace unknown sounds with direct value in registry data
2024-04-06 23:47:27 +02:00
Nassim Jahnke
c2489c7a4c
Back up 1.20.5 data components in VB for creative clients
2024-04-06 21:26:44 +02:00
Nassim Jahnke
c743c20334
Update wolf textures again, add utility methods
2024-04-06 21:26:44 +02:00
FlorianMichael
228689f181
Remove temporary goat horn fix
2024-04-06 21:26:44 +02:00
Nassim Jahnke
67e6e1a2e3
24w14a
2024-04-06 21:26:44 +02:00
Nassim Jahnke
a2c1c52f51
24w13a
2024-04-06 21:26:44 +02:00
Nassim Jahnke
0b7fdd4c69
Update wild wolf texture field name
2024-04-06 21:26:43 +02:00
Nassim Jahnke
4849ca0745
Start working on 24w12a
2024-04-06 21:26:43 +02:00
Nassim Jahnke
60b782455d
Fix display tag setting and doubled item id rewriting
2024-04-06 21:26:43 +02:00
FlorianMichael
3fef71db2e
Added missing null checks for CONTAINER_LOOT handler
2024-04-06 21:26:43 +02:00
Nassim Jahnke
9ca02680c8
Fix enchantment level
2024-04-06 21:26:43 +02:00
FlorianMichael
5899886b42
Fixes
2024-04-06 21:26:42 +02:00
Nassim Jahnke
c2567115d8
Fix various issues
2024-04-06 21:26:42 +02:00
Nassim Jahnke
4255876c22
Fix up block state handling, add PotDecorations wrapper
2024-04-06 21:26:42 +02:00
FlorianMichael
57a589924d
More structured data handling
2024-04-06 21:26:42 +02:00
Nassim Jahnke
936dcafc11
Make HolderSet an interface
2024-04-06 21:26:42 +02:00
Nassim Jahnke
b6489b8343
Fix block predicate parsing
2024-04-06 21:26:41 +02:00
Nassim Jahnke
bf11a0a7de
Start working on 24w11a
2024-04-06 21:26:41 +02:00
Nassim Jahnke
7d41706026
Rewrite block predicates the other way around as well
2024-04-06 21:26:41 +02:00
FlorianMichael
93f081dd84
Add even more backwards rewriters
2024-04-06 21:26:41 +02:00
Nassim Jahnke
3f82b150d2
Handle CanPlaceOn and CanDestroy tags
2024-04-06 21:26:39 +02:00
Nassim Jahnke
7a96498f6d
Some sanity checks, get item id by name fast
2024-04-06 21:26:17 +02:00
FlorianMichael
817febe605
Even more work!
2024-04-06 21:26:16 +02:00
Nassim Jahnke
bb4a8b73e0
Small cleanup
2024-04-06 21:26:16 +02:00