-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved packet logging for entity movement and player list (#444)
* added option to ignore player position * added logging of entityID for entity moving packets * added SPacketPlayerListItem to packet logger * added SPacketSpawnPlayer to packet logger
- Loading branch information
1 parent
272172a
commit 5773979
Showing
5 changed files
with
147 additions
and
38 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
src/main/java/com/lambda/mixin/accessor/network/AccessorSPacketEntity.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,17 @@ | ||
package com.lambda.mixin.accessor.network; | ||
|
||
import net.minecraft.network.play.server.SPacketEntity; | ||
import net.minecraft.network.play.server.SPacketEntityVelocity; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Accessor; | ||
|
||
@Mixin(SPacketEntity.class) | ||
public interface AccessorSPacketEntity { | ||
|
||
@Accessor("entityId") | ||
int getEntityId(); | ||
|
||
@Accessor("entityId") | ||
void setEntityId(int value); | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/lambda/mixin/accessor/network/AccessorSPacketEntityHeadLook.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,16 @@ | ||
package com.lambda.mixin.accessor.network; | ||
|
||
import net.minecraft.network.play.server.SPacketEntityHeadLook; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Accessor; | ||
|
||
@Mixin(SPacketEntityHeadLook.class) | ||
public interface AccessorSPacketEntityHeadLook { | ||
|
||
@Accessor("entityId") | ||
int getEntityId(); | ||
|
||
@Accessor("entityId") | ||
void setEntityId(int value); | ||
|
||
} |
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