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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user