mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 14:38:50 +00:00
Stuff
This commit is contained in:
1 parent
9c4a30d224
commit
666398e480
174 files changed
+8694
-2942
No files matched your search
@@ -0,0 +1,17 @@
|
||||
package com.moulberry.flashback;
|
||||
|
||||
import net.minecraft.network.protocol.game.ClientboundAddEntityPacket;
|
||||
import net.minecraft.world.entity.Entity;
|
||||
|
||||
public class PacketHelper {
|
||||
|
||||
public static ClientboundAddEntityPacket createAddEntity(Entity entity) {
|
||||
return createAddEntity(entity, 0);
|
||||
}
|
||||
|
||||
public static ClientboundAddEntityPacket createAddEntity(Entity entity, int data) {
|
||||
return new ClientboundAddEntityPacket(entity.getId(), entity.getUUID(), entity.getX(), entity.getY(), entity.getZ(),
|
||||
entity.getXRot(), entity.getYRot(), entity.getType(), data, entity.getDeltaMovement(), entity.getYHeadRot());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user