9
0
mirror of https://github.com/HibiscusMC/HibiscusCommons.git synced 2026-01-04 15:41:36 +00:00

feat: new entity item display packets

This commit is contained in:
LoJoSho
2024-12-29 22:34:25 -06:00
parent dcfde7db6d
commit 9aa2c26223
7 changed files with 332 additions and 22 deletions

View File

@@ -1,12 +1,19 @@
package me.lojosho.hibiscuscommons.nms;
import it.unimi.dsi.fastutil.ints.IntList;
import org.bukkit.Location;
import org.bukkit.entity.Display;
import org.bukkit.entity.EntityType;
import org.bukkit.entity.ItemDisplay;
import org.bukkit.entity.Player;
import org.bukkit.inventory.EquipmentSlot;
import org.bukkit.inventory.ItemStack;
import org.joml.Quaternionf;
import org.joml.Vector3f;
import java.util.HashMap;
import java.util.List;
import java.util.UUID;
public interface NMSPackets {
@@ -51,4 +58,18 @@ public interface NMSPackets {
void sendRotationPacket(int entityId, float yaw, boolean onGround, List<Player> sendTo);
void sendCameraPacket(int entityId, List<Player> sendTo);
void sendSpawnEntityPacket(int entityId, UUID uuid, EntityType entityType, Location location, List<Player> sendTo);
void sendEntityDestroyPacket(IntList entityIds, List<Player> sendTo);
void sendItemDisplayMetadata(int entityId,
Vector3f translation,
Vector3f scale,
Quaternionf rotationLeft,
Quaternionf rotationRight,
Display.Billboard billboard,
int blockLight, int skyLight, float viewRange, float width, float height,
ItemDisplay.ItemDisplayTransform transform, ItemStack itemStack,
List<Player> sendTo);
}