-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes for 1.20.2 + added 2 new particles
- Loading branch information
Showing
25 changed files
with
608 additions
and
42 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
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
...com/github/fierioziy/particlenativeapi/core/asm/packet/ParticlePacketProvider_1_20_2.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 com.github.fierioziy.particlenativeapi.core.asm.packet; | ||
|
||
import com.github.fierioziy.particlenativeapi.core.asm.ContextASM; | ||
import com.github.fierioziy.particlenativeapi.core.asm.packet.v1_17.ParticlePacketASM_1_17; | ||
import com.github.fierioziy.particlenativeapi.core.asm.skeleton.ClassSkeleton; | ||
|
||
public class ParticlePacketProvider_1_20_2 extends ParticlePacketProvider { | ||
|
||
private final String playerConnectionFieldName; | ||
private final String sendPacketMethodName; | ||
|
||
public ParticlePacketProvider_1_20_2(ContextASM context) { | ||
super(context); | ||
|
||
playerConnectionFieldName = context.internal.getPlayerConnectionFieldName_1_17(); | ||
sendPacketMethodName = context.internal.getSendPacketMethodName_1_20_2(); | ||
} | ||
|
||
@Override | ||
public void registerClasses() { | ||
new ParticlePacketASM_1_17(context, | ||
ClassSkeleton.PARTICLE_PACKET, | ||
playerConnectionFieldName, sendPacketMethodName) | ||
.registerClass(); | ||
} | ||
|
||
} |
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
Oops, something went wrong.