This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
-
-
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
3 changed files
with
22 additions
and
22 deletions.
There are no files selected for viewing
18 changes: 9 additions & 9 deletions
18
src/main/java/io/github/null2264/libreexpfix/mixin/EntityAccessor.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,13 +1,13 @@ | ||
//#if FORGE>=1 | ||
package io.github.null2264.libreexpfix.mixin; | ||
//$$ package io.github.null2264.libreexpfix.mixin; | ||
|
||
import net.minecraft.world.entity.Entity; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Accessor; | ||
//$$ import net.minecraft.world.entity.Entity; | ||
//$$ import org.spongepowered.asm.mixin.Mixin; | ||
//$$ import org.spongepowered.asm.mixin.gen.Accessor; | ||
|
||
@Mixin(Entity.class) | ||
public interface EntityAccessor { | ||
@Accessor("id") | ||
int getEntityId(); | ||
} | ||
//$$ @Mixin(Entity.class) | ||
//$$ public interface EntityAccessor { | ||
//$$ @Accessor("id") | ||
//$$ int getEntityId(); | ||
//$$ } | ||
//#endif |
20 changes: 10 additions & 10 deletions
20
src/main/java/io/github/null2264/libreexpfix/mixin/ServerGamePacketListenerAccessor.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,22 +1,22 @@ | ||
//#if FORGE>=1 | ||
package io.github.null2264.libreexpfix.mixin; | ||
//$$ package io.github.null2264.libreexpfix.mixin; | ||
|
||
import net.minecraft.network.Connection; | ||
//$$ import net.minecraft.network.Connection; | ||
//#if MC>=1.20.2 | ||
//$$ import net.minecraft.server.network.ServerCommonPacketListenerImpl; | ||
//#else | ||
import net.minecraft.server.network.ServerGamePacketListenerImpl; | ||
//$$ import net.minecraft.server.network.ServerGamePacketListenerImpl; | ||
//#endif | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Accessor; | ||
//$$ import org.spongepowered.asm.mixin.Mixin; | ||
//$$ import org.spongepowered.asm.mixin.gen.Accessor; | ||
|
||
//#if MC>=1.20.2 | ||
//$$ @Mixin(ServerCommonPacketListenerImpl.class) | ||
//#else | ||
@Mixin(ServerGamePacketListenerImpl.class) | ||
//$$ @Mixin(ServerGamePacketListenerImpl.class) | ||
//#endif | ||
public interface ServerGamePacketListenerAccessor { | ||
@Accessor("connection") | ||
Connection getConn(); | ||
} | ||
//$$ public interface ServerGamePacketListenerAccessor { | ||
//$$ @Accessor("connection") | ||
//$$ Connection getConn(); | ||
//$$ } | ||
//#endif |
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