    public void translate(ServerEntityMetadataPacket packet, GeyserSession session) {
        Entity entity;
        if (packet.getEntityId() == session.getPlayerEntity().getEntityId()) {
            entity = session.getPlayerEntity();
        } else {
            entity = session.getEntityCache().getEntityByJavaId(packet.getEntityId());
        }
        if (entity == null) return;

        for (EntityMetadata metadata : packet.getMetadata()) {
            try {
                entity.updateBedrockMetadata(metadata, session);
            } catch (ClassCastException e) {
                // Class cast exceptions are really the only ones we're going to get in normal gameplay
                // Because some entity rewriters forget about some values
                // Any other errors are actual bugs
                session.getConnector().getLogger().warning(LanguageUtils.getLocaleStringLog("geyser.network.translator.metadata.failed", metadata, entity.getEntityType()));
                session.getConnector().getLogger().debug("Entity Java ID: " + entity.getEntityId() + ", Geyser ID: " + entity.getGeyserId());
                if (session.getConnector().getConfig().isDebugMode()) {
                    e.printStackTrace();
                }
            }
        }

        entity.updateBedrockMetadata(session);

        // Update the interactive tag, if necessary
        if (session.getMouseoverEntity() != null && session.getMouseoverEntity().getEntityId() == entity.getEntityId()) {
            InteractiveTagManager.updateTag(session, entity);
        }
    }
When an actor claims to have a given identity, the software does not prove or insufficiently proves that the claim is correct.