Skip to content

Commit 7ee9103

Browse files
committed
Add missing mixin
1 parent e58ee25 commit 7ee9103

File tree

1 file changed

+6
-28
lines changed

1 file changed

+6
-28
lines changed

cardinal-components-base/src/main/java/org/ladysnake/cca/mixin/base/ComponentMixin.java renamed to cardinal-components-base/src/main/java/org/ladysnake/cca/mixin/base/NbtReadViewAccessor.java

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -23,34 +23,12 @@
2323
package org.ladysnake.cca.mixin.base;
2424

2525
import 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;
2827
import 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
}

0 commit comments

Comments
 (0)