PacketEquipmentVeil

public final class PacketEquipmentVeil

Per-viewer entity ids whose equipment reaches that viewer emptied. An invisible mob still renders its armor and held items, so a model that keeps its hidden entity tracked by the viewers of the model veils it here and the outbound packet hook replaces every equipment slot it sends them with air. Bedrock viewers are never veiled by the callers that show them the vanilla mob instead.

Functions

Link copied to clipboard
public static void clear()
Link copied to clipboard
public static void clearViewer(UUID viewer)
Link copied to clipboard
public static boolean hasVeils(UUID viewer)
Cheap gate for the packet hook: most viewers veil nothing.
Link copied to clipboard
public static boolean isVeiled(Array<int> veils, int entityId)
Whether entityId is in ids returned by veils.
public static boolean isVeiled(UUID viewer, int entityId)
Link copied to clipboard
public static void unveil(UUID viewer, int entityId)
Link copied to clipboard
public static void veil(UUID viewer, int entityId)
Link copied to clipboard
public static Array<int> veils(UUID viewer)
The viewer's veiled entity ids, sorted, or null when it veils none.