forked from FabricMC/fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
49 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...gistry-sync-v0/src/main/java/net/fabricmc/fabric/mixin/registry/sync/class_7780Mixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package net.fabricmc.fabric.mixin.registry.sync; | ||
|
||
import java.util.List; | ||
|
||
import org.spongepowered.asm.mixin.Final; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.Shadow; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Inject; | ||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; | ||
|
||
import net.minecraft.class_7780; | ||
import net.minecraft.util.registry.DynamicRegistryManager; | ||
|
||
import net.fabricmc.fabric.api.event.registry.DynamicRegistrySetupCallback; | ||
|
||
@Mixin(class_7780.class) | ||
public class class_7780Mixin { | ||
@Shadow | ||
@Final | ||
private DynamicRegistryManager.Immutable field_40583; | ||
|
||
@Inject(method = "<init>(Ljava/util/List;Ljava/util/List;)V", at = @At("RETURN")) | ||
private void init(List list, List list2, CallbackInfo ci) { | ||
DynamicRegistrySetupCallback.EVENT.invoker().onRegistrySetup(this.field_40583); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters