File tree Expand file tree Collapse file tree 1 file changed +6
-28
lines changed
cardinal-components-base/src/main/java/org/ladysnake/cca/mixin/base Expand file tree Collapse file tree 1 file changed +6
-28
lines changed Original file line number Diff line number Diff line change 2323package org .ladysnake .cca .mixin .base ;
2424
2525import net .minecraft .nbt .NbtCompound ;
26- import net .minecraft .registry .RegistryWrapper ;
27- import org .ladysnake .cca .api .v3 .component .Component ;
26+ import net .minecraft .storage .NbtReadView ;
2827import org .spongepowered .asm .mixin .Mixin ;
29- import org .spongepowered .asm .mixin .Overwrite ;
30- import org .spongepowered .asm .mixin .Unique ;
28+ import org .spongepowered .asm .mixin .gen .Accessor ;
3129
32- @ Mixin (Component .class )
33- public interface ComponentMixin {
34- @ Unique
35- void readFromNbt (NbtCompound tag );
36- @ Unique
37- void writeToNbt (NbtCompound tag );
38-
39- /**
40- * @author Pyrofab
41- * @reason binary compatibility with mods released for beta.1
42- */
43- @ Overwrite
44- default void readFromNbt (NbtCompound tag , RegistryWrapper .WrapperLookup registryLookup ) {
45- readFromNbt (tag );
46- }
47-
48- /**
49- * @author Pyrofab
50- * @reason binary compatibility with mods released for beta.1
51- */
52- @ Overwrite
53- default void writeToNbt (NbtCompound tag , RegistryWrapper .WrapperLookup registryLookup ) {
54- writeToNbt (tag );
55- }
30+ @ Mixin (NbtReadView .class )
31+ public interface NbtReadViewAccessor {
32+ @ Accessor
33+ NbtCompound getNbt ();
5634}
You can’t perform that action at this time.
0 commit comments