-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
c5a448b
commit 7798bc9
Showing
28 changed files
with
129 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
minecraftVersion=1.21 | ||
minecraftVersion=1.21.3 | ||
fancyLoggerVersion=0.0.4 |
43 changes: 0 additions & 43 deletions
43
...a/de/oliver/fancysitula/versions/v1_20_6/packets/ClientboundTeleportEntityPacketImpl.java
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...ckets/ClientboundAddEntityPacketImpl.java → ...ckets/ClientboundAddEntityPacketImpl.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
4 changes: 2 additions & 2 deletions
4
...entboundCreateOrUpdateTeamPacketImpl.java → ...entboundCreateOrUpdateTeamPacketImpl.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
4 changes: 2 additions & 2 deletions
4
...lientboundPlayerInfoRemovePacketImpl.java → ...lientboundPlayerInfoRemovePacketImpl.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
6 changes: 3 additions & 3 deletions
6
...lientboundPlayerInfoUpdatePacketImpl.java → ...lientboundPlayerInfoUpdatePacketImpl.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
4 changes: 2 additions & 2 deletions
4
.../ClientboundRemoveEntitiesPacketImpl.java → .../ClientboundRemoveEntitiesPacketImpl.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
4 changes: 2 additions & 2 deletions
4
...kets/ClientboundRotateHeadPacketImpl.java → ...kets/ClientboundRotateHeadPacketImpl.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
4 changes: 2 additions & 2 deletions
4
...s/ClientboundSetEntityDataPacketImpl.java → ...s/ClientboundSetEntityDataPacketImpl.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
4 changes: 2 additions & 2 deletions
4
...ts/ClientboundSetEquipmentPacketImpl.java → ...ts/ClientboundSetEquipmentPacketImpl.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
4 changes: 2 additions & 2 deletions
4
...s/ClientboundSetPassengersPacketImpl.java → ...s/ClientboundSetPassengersPacketImpl.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
43 changes: 43 additions & 0 deletions
43
...a/de/oliver/fancysitula/versions/v1_21_3/packets/ClientboundTeleportEntityPacketImpl.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,43 @@ | ||
package de.oliver.fancysitula.versions.v1_21_3.packets; | ||
|
||
import de.oliver.fancysitula.api.entities.FS_RealPlayer; | ||
import de.oliver.fancysitula.api.packets.FS_ClientboundTeleportEntityPacket; | ||
import de.oliver.fancysitula.versions.v1_21_3.utils.VanillaPlayerAdapter; | ||
import net.minecraft.network.protocol.game.ClientboundTeleportEntityPacket; | ||
import net.minecraft.server.level.ServerPlayer; | ||
import net.minecraft.world.entity.PositionMoveRotation; | ||
import net.minecraft.world.phys.Vec3; | ||
|
||
import java.util.Set; | ||
|
||
public class ClientboundTeleportEntityPacketImpl extends FS_ClientboundTeleportEntityPacket { | ||
|
||
public ClientboundTeleportEntityPacketImpl(int entityId, double x, double y, double z, float yaw, float pitch, boolean onGround) { | ||
super(entityId, x, y, z, yaw, pitch, onGround); | ||
} | ||
|
||
@Override | ||
public Object createPacket() { | ||
ClientboundTeleportEntityPacket packet = new ClientboundTeleportEntityPacket( | ||
entityId, | ||
new PositionMoveRotation( | ||
new Vec3(x, y, z), | ||
Vec3.ZERO, | ||
yaw, | ||
pitch | ||
), | ||
Set.of(), | ||
onGround | ||
); | ||
|
||
return packet; | ||
} | ||
|
||
@Override | ||
public void sendPacketTo(FS_RealPlayer player) { | ||
ClientboundTeleportEntityPacket packet = (ClientboundTeleportEntityPacket) createPacket(); | ||
|
||
ServerPlayer vanillaPlayer = VanillaPlayerAdapter.asVanilla(player.getBukkitPlayer()); | ||
vanillaPlayer.connection.send(packet); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...rsions/v1_20_6/utils/GameProfileImpl.java → ...rsions/v1_21_3/utils/GameProfileImpl.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
2 changes: 1 addition & 1 deletion
2
...s/v1_20_6/utils/VanillaPlayerAdapter.java → ...s/v1_21_3/utils/VanillaPlayerAdapter.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
Oops, something went wrong.