generated from babric/babric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port GuiAPI, ModLoader, ModOptionsAPI, PlayerAPI and Reforged mixins
- Loading branch information
1 parent
6f41441
commit e51b941
Showing
31 changed files
with
316 additions
and
341 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
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
3 changes: 1 addition & 2 deletions
3
...c/main/java/io/github/betterthanupdates/modloader/mixin/client/DisconnectPacketMixin.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
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
18 changes: 9 additions & 9 deletions
18
...c/main/java/io/github/betterthanupdates/modloader/mixin/client/ServerChunkCacheMixin.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 |
---|---|---|
@@ -1,26 +1,26 @@ | ||
package io.github.betterthanupdates.modloader.mixin.client; | ||
|
||
import modloader.ModLoader; | ||
import net.minecraft.class_326; | ||
import net.minecraft.class_51; | ||
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.world.World; | ||
import net.minecraft.world.chunk.ServerChunkCache; | ||
import net.minecraft.world.source.WorldSource; | ||
|
||
@Mixin(ServerChunkCache.class) | ||
public abstract class ServerChunkCacheMixin implements WorldSource { | ||
@Mixin(class_326.class) | ||
public abstract class ServerChunkCacheMixin implements class_51 { | ||
@Shadow | ||
private WorldSource worldSource; | ||
private class_51 field_1227; | ||
|
||
@Shadow | ||
private World world; | ||
private World field_1231; | ||
|
||
@Inject(method = "decorate", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/chunk/Chunk;method_885()V")) | ||
private void modloader$decorate(WorldSource i, int j, int par3, CallbackInfo ci) { | ||
ModLoader.PopulateChunk(this.worldSource, j, par3, this.world); | ||
@Inject(method = "method_1803", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/chunk/Chunk;method_885()V")) | ||
private void modloader$decorate(class_51 i, int j, int par3, CallbackInfo ci) { | ||
ModLoader.PopulateChunk(this.field_1227, j, par3, this.field_1231); | ||
} | ||
} |
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
Oops, something went wrong.